Skip to content

Commit 3848260

Browse files
committed
refactor: remove test_tools and full features from mithril-common
This limit the available features of `mithril-common` to a minimum, making it easier for rust compiler to reuse build artifacts.
1 parent 2ab36d3 commit 3848260

File tree

20 files changed

+8
-52
lines changed

20 files changed

+8
-52
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
// args);
101101

102102
mithril-stm = buildPackage ./mithril-stm/Cargo.toml null {};
103-
mithril-common = buildPackage ./mithril-common/Cargo.toml mithril-stm.cargoArtifacts { cargoExtraArgs = "-p mithril-common --features full"; };
103+
mithril-common = buildPackage ./mithril-common/Cargo.toml mithril-stm.cargoArtifacts { cargoExtraArgs = "-p mithril-common"; };
104104
mithril = buildPackage null mithril-common.cargoArtifacts {
105105
doCheck = false;
106106
};

internal/cardano-node/mithril-cardano-node-chain/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ kes-summed-ed25519 = { version = "0.2.1", features = [
3535
"serde_enabled",
3636
"sk_clone_enabled",
3737
] }
38-
mithril-common = { path = "../../../mithril-common", features = ["test_tools"] }
3938
mockall = { workspace = true }
4039
pallas-crypto = "0.33.0"
4140
slog-async = { workspace = true }

internal/cardano-node/mithril-cardano-node-internal-database/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ walkdir = "2.5.0"
2929

3030
[dev-dependencies]
3131
criterion = { version = "0.6.0", features = ["html_reports", "async_tokio"] }
32-
mithril-common = { path = "../../../mithril-common", version = ">=0.5", features = ["test_tools"] }
3332
mockall = { workspace = true }
3433
slog-async = { workspace = true }
3534
slog-term = { workspace = true }

internal/mithril-dmq/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ slog = { workspace = true }
2424
tokio = { workspace = true, features = ["sync"] }
2525

2626
[dev-dependencies]
27-
mithril-common = { path = "../../mithril-common", features = ["test_tools"] }
2827
mockall = { workspace = true }
2928
slog-async = { workspace = true }
3029
slog-term = { workspace = true }

internal/mithril-era/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ serde_json = { workspace = true }
2121
thiserror = { workspace = true }
2222

2323
[dev-dependencies]
24-
mithril-common = { path = "../../mithril-common", features = ["test_tools"] }
2524
tokio = { workspace = true, features = ["macros"] }

internal/mithril-persistence/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ thiserror = { workspace = true }
2626
tokio = { workspace = true }
2727

2828
[dev-dependencies]
29-
mithril-common = { path = "../../mithril-common", features = ["test_tools"] }
3029
tokio = { workspace = true, features = ["macros", "time"] }

internal/mithril-resource-pool/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ thiserror = { workspace = true }
1818
tokio = { workspace = true }
1919

2020
[dev-dependencies]
21-
mithril-common = { path = "../../mithril-common", features = ["test_tools"] }
2221
tokio = { workspace = true, features = ["macros", "time"] }

internal/signed-entity/mithril-signed-entity-preloader/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ slog = { workspace = true }
2121
tokio = { workspace = true }
2222

2323
[dev-dependencies]
24-
mithril-common = { path = "../../../mithril-common", features = ["test_tools"] }
2524
mockall = { workspace = true }
2625
slog-async = { workspace = true }
2726
slog-term = { workspace = true }

internal/tests/mithril-api-spec/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ serde_yml = "0.0.12"
1717
warp = { workspace = true }
1818

1919
[dev-dependencies]
20-
mithril-common = { path = "../../../mithril-common", features = ["test_tools"] }
20+
mithril-common = { path = "../../../mithril-common" }

mithril-aggregator/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ hex = { workspace = true }
2929
mithril-cardano-node-chain = { path = "../internal/cardano-node/mithril-cardano-node-chain" }
3030
mithril-cardano-node-internal-database = { path = "../internal/cardano-node/mithril-cardano-node-internal-database" }
3131
mithril-cli-helper = { path = "../internal/mithril-cli-helper" }
32-
mithril-common = { path = "../mithril-common", features = ["full"] }
32+
mithril-common = { path = "../mithril-common" }
3333
mithril-dmq = { path = "../internal/mithril-dmq", optional = true }
3434
mithril-doc = { path = "../internal/mithril-doc" }
3535
mithril-era = { path = "../internal/mithril-era" }
@@ -82,10 +82,7 @@ criterion = { version = "0.6.0", features = ["html_reports", "async_tokio"] }
8282
http = "1.3.1"
8383
httpmock = "0.7.0"
8484
mithril-api-spec = { path = "../internal/tests/mithril-api-spec" }
85-
mithril-common = { path = "../mithril-common", features = [
86-
"allow_skip_signer_certification",
87-
"test_tools",
88-
] }
85+
mithril-common = { path = "../mithril-common", features = ["allow_skip_signer_certification"] }
8986
mithril-test-http-server = { path = "../internal/tests/mithril-test-http-server" }
9087
mockall = { workspace = true }
9188
slog-scope = "4.4.0"

0 commit comments

Comments
 (0)