Skip to content

Macro to implement the source trait #2377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"examples/client-cardano-transaction",
"examples/client-mithril-stake-distribution",
"internal/mithril-build-script",
"internal/mithril-cli-helper",
"internal/mithril-doc",
"internal/mithril-doc-derive",
"internal/mithril-metric",
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
COMPONENTS = mithril-common mithril-stm mithril-aggregator mithril-client mithril-client-cli mithril-signer \
internal/mithril-persistence internal/mithril-doc-derive internal/mithril-doc internal/mithril-build-script \
demo/protocol-demo mithril-test-lab/mithril-end-to-end
COMPONENTS = mithril-aggregator mithril-client mithril-client-cli mithril-client-wasm \
mithril-common mithril-relay mithril-signer mithril-stm \
internal/mithril-build-script internal/mithril-cli-helper internal/mithril-doc \
internal/mithril-doc-derive internal/mithril-metric internal/mithril-persistence \
internal/mithril-resource-pool internal/signed-entity/mithril-signed-entity-lock \
internal/signed-entity/mithril-signed-entity-preloader \
demo/protocol-demo \
mithril-test-lab/mithril-aggregator-fake mithril-test-lab/mithril-end-to-end
GOALS := $(or $(MAKECMDGOALS),all)
NON_COMPONENT_GOALS := check-format format

Expand Down
16 changes: 16 additions & 0 deletions internal/mithril-cli-helper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "mithril-cli-helper"
version = "0.0.1"
description = "An internal crate to provide tools for cli."
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]

[dependencies]
config = "0.15.7"

[features]
default = []
19 changes: 19 additions & 0 deletions internal/mithril-cli-helper/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: all build test check doc

CARGO = cargo

all: test build

build:
${CARGO} build --release

test:
${CARGO} test

check:
${CARGO} check --release --all-features --all-targets
${CARGO} clippy --release --all-features --all-targets
${CARGO} fmt --check

doc:
${CARGO} doc --no-deps --open --features full
3 changes: 3 additions & 0 deletions internal/mithril-cli-helper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Mithril-cli-helper

An internal crate to provide tools for Mithril CLIs.
1 change: 1 addition & 0 deletions internal/mithril-cli-helper/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod source_config;
Loading
Loading