Skip to content

Commit 5040374

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 3657df1 commit 5040374

File tree

23 files changed

+8
-55
lines changed

23 files changed

+8
-55
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-aggregator-client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ tokio = { workspace = true }
2828
[dev-dependencies]
2929
http = "1.3.1"
3030
httpmock = "0.7.0"
31-
mithril-common = { path = "../../mithril-common", version = ">=0.5", features = ["test_tools"] }
3231
mockall = { workspace = true }
3332
slog-async = { workspace = true }
3433
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-metric/Cargo.toml

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

2424
[dev-dependencies]
25-
mithril-common = { path = "../../mithril-common", features = ["test_tools"] }
2625
prometheus-parse = "0.2.5"
2726
slog-async = { workspace = true }
2827
slog-term = { workspace = true }

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 }

0 commit comments

Comments
 (0)