Skip to content

Commit

Permalink
fix(workspace_tests): remove direct self-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dorimedini-starkware committed Jan 24, 2025
1 parent e0638fd commit 970e3e6
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 24 deletions.
9 changes: 0 additions & 9 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion crates/papyrus_base_layer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ validator.workspace = true

[dev-dependencies]
ethers-core.workspace = true
papyrus_base_layer = { path = "../papyrus_base_layer", features = ["testing"] }
pretty_assertions.workspace = true
starknet-types-core.workspace = true
starknet_api = { path = "../starknet_api", features = ["testing"] }
tar.workspace = true
tempfile.workspace = true
3 changes: 2 additions & 1 deletion crates/starknet_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ strum_macros.workspace = true
thiserror.workspace = true

[dev-dependencies]
assert-json-diff.workspace = true
assert_matches.workspace = true
rstest.workspace = true
starknet_api = { path = ".", features = ["testing"] }
starknet_infra_utils.path = "../starknet_infra_utils"

[lints]
workspace = true
3 changes: 1 addition & 2 deletions crates/starknet_batcher_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ thiserror.workspace = true


[dev-dependencies]
# Enable self with "testing" feature in tests.
starknet_batcher_types = { path = ".", features = ["testing"] }
mockall.workspace = true
3 changes: 1 addition & 2 deletions crates/starknet_gateway_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ thiserror.workspace = true
tracing.workspace = true

[dev-dependencies]
# Enable self with "testing" feature in tests.
starknet_gateway_types = { path = ".", features = ["testing"] }
mockall.workspace = true
2 changes: 1 addition & 1 deletion crates/starknet_http_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ blockifier = { path = "../blockifier", features = ["testing"] }
mempool_test_utils.path = "../mempool_test_utils"
metrics.workspace = true
metrics-exporter-prometheus.workspace = true
reqwest.workspace = true
serde_json.workspace = true
starknet-types-core.workspace = true
starknet_http_server = { path = "../starknet_http_server", features = ["testing"] }
tracing-test.workspace = true
10 changes: 8 additions & 2 deletions crates/starknet_mempool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,24 @@ tracing.workspace = true
[dev-dependencies]
assert_matches.workspace = true
itertools.workspace = true
mempool_test_utils.path = "../mempool_test_utils"
mockall.workspace = true
papyrus_network = { path = "../papyrus_network", features = ["testing"] }
papyrus_network_types = { path = "../papyrus_network_types", features = ["testing"] }
papyrus_test_utils.path = "../papyrus_test_utils"
pretty_assertions.workspace = true
rstest.workspace = true
starknet-types-core.workspace = true
starknet_api = { path = "../starknet_api", features = ["testing"] }
# Enable test utils feature for integration tests.
starknet_mempool = { path = ".", features = ["testing"] }
starknet_mempool_p2p_types = { path = "../starknet_mempool_p2p_types", features = ["testing"] }

[features]
testing = ["mempool_test_utils", "pretty_assertions", "starknet-types-core"]

[package.metadata.cargo-machete]
ignored = ["starknet-types-core"]

[[test]]
name = "flow_test"
path = "tests/flow_test.rs"
required-features = ["testing"]
3 changes: 1 addition & 2 deletions crates/starknet_mempool_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ starknet_sequencer_infra.workspace = true
thiserror.workspace = true

[dev-dependencies]
# Enable self with "testing" feature in tests.
starknet_mempool_types = { path = ".", features = ["testing"] }
mockall.workspace = true
2 changes: 0 additions & 2 deletions crates/starknet_sequencer_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ mempool_test_utils.path = "../mempool_test_utils"
pretty_assertions.workspace = true
serde_json.workspace = true
starknet_infra_utils.path = "../starknet_infra_utils"
# Enable self with "testing" feature in tests.
starknet_sequencer_node = { path = ".", features = ["testing"] }
3 changes: 1 addition & 2 deletions crates/starknet_state_sync_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ starknet_sequencer_infra.workspace = true
thiserror.workspace = true

[dev-dependencies]
# Enable self with "testing" feature in tests.
starknet_state_sync_types = { path = "../starknet_state_sync_types", features = ["testing"] }
mockall.workspace = true

0 comments on commit 970e3e6

Please sign in to comment.