Skip to content

Commit ba14422

Browse files
authored
Merge pull request #2377 from input-output-hk/sfa/2365/macro_to_implement_the_source_trait
Macro to implement the source trait
2 parents 2614ed3 + e8bf4be commit ba14422

File tree

18 files changed

+503
-168
lines changed

18 files changed

+503
-168
lines changed

Cargo.lock

+15-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ members = [
1010
"examples/client-cardano-transaction",
1111
"examples/client-mithril-stake-distribution",
1212
"internal/mithril-build-script",
13+
"internal/mithril-cli-helper",
1314
"internal/mithril-doc",
1415
"internal/mithril-doc-derive",
1516
"internal/mithril-metric",

Makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
COMPONENTS = mithril-common mithril-stm mithril-aggregator mithril-client mithril-client-cli mithril-signer \
2-
internal/mithril-persistence internal/mithril-doc-derive internal/mithril-doc internal/mithril-build-script \
3-
demo/protocol-demo mithril-test-lab/mithril-end-to-end
1+
COMPONENTS = mithril-aggregator mithril-client mithril-client-cli mithril-client-wasm \
2+
mithril-common mithril-relay mithril-signer mithril-stm \
3+
internal/mithril-build-script internal/mithril-cli-helper internal/mithril-doc \
4+
internal/mithril-doc-derive internal/mithril-metric internal/mithril-persistence \
5+
internal/mithril-resource-pool internal/signed-entity/mithril-signed-entity-lock \
6+
internal/signed-entity/mithril-signed-entity-preloader \
7+
demo/protocol-demo \
8+
mithril-test-lab/mithril-aggregator-fake mithril-test-lab/mithril-end-to-end
49
GOALS := $(or $(MAKECMDGOALS),all)
510
NON_COMPONENT_GOALS := check-format format
611

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "mithril-cli-helper"
3+
version = "0.0.1"
4+
description = "An internal crate to provide tools for cli."
5+
authors = { workspace = true }
6+
edition = { workspace = true }
7+
homepage = { workspace = true }
8+
license = { workspace = true }
9+
repository = { workspace = true }
10+
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
11+
12+
[dependencies]
13+
config = "0.15.7"
14+
15+
[features]
16+
default = []

internal/mithril-cli-helper/Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.PHONY: all build test check doc
2+
3+
CARGO = cargo
4+
5+
all: test build
6+
7+
build:
8+
${CARGO} build --release
9+
10+
test:
11+
${CARGO} test
12+
13+
check:
14+
${CARGO} check --release --all-features --all-targets
15+
${CARGO} clippy --release --all-features --all-targets
16+
${CARGO} fmt --check
17+
18+
doc:
19+
${CARGO} doc --no-deps --open --features full

internal/mithril-cli-helper/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Mithril-cli-helper
2+
3+
An internal crate to provide tools for Mithril CLIs.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod source_config;

0 commit comments

Comments
 (0)