Skip to content

Commit

Permalink
chore: fix machete errors (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware authored Jul 11, 2024
1 parent 0dd8bbf commit d852e75
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 50 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion crates/committer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ rand.workspace = true
serde.workspace = true
serde_json.workspace = true
starknet-types-core.workspace = true
strum.workspace = true
strum_macros.workspace = true
thiserror.workspace = true
tokio.workspace = true
3 changes: 0 additions & 3 deletions crates/committer_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ pretty_assertions.workspace = true
[dependencies]
clap.workspace = true
committer = { path = "../committer", features = ["testing"] }
derive_more.workspace = true
ethnum.workspace = true
hex.workspace = true
indexmap.workspace = true
rand.workspace = true
rand_distr.workspace = true
Expand All @@ -28,7 +26,6 @@ simplelog.workspace = true
starknet-types-core.workspace = true
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9"}
strum.workspace = true
strum_macros.workspace = true
thiserror.workspace = true
tokio.workspace = true

Expand Down
2 changes: 0 additions & 2 deletions crates/papyrus_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license-file.workspace = true
description = "Common utils and objects for a Starknet node."

[dependencies]
bitvec.workspace = true
cairo-lang-starknet-classes.workspace = true
hex.workspace = true
itertools.workspace = true
Expand All @@ -16,7 +15,6 @@ serde.workspace = true
serde_json.workspace = true
sha3.workspace = true
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9" }
starknet-crypto.workspace = true
starknet-types-core = { workspace = true, features = ["hash"] }
thiserror.workspace = true
rand.workspace = true
Expand Down
7 changes: 6 additions & 1 deletion crates/papyrus_execution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license-file.workspace = true
description = "Transaction and entry point execution functionality for a Papyrus node."

[features]
testing = ["rand", "rand_chacha", "papyrus_test_utils"]
testing = ["papyrus_test_utils", "rand", "rand_chacha"]

[dependencies]
anyhow.workspace = true
Expand Down Expand Up @@ -41,3 +41,8 @@ pretty_assertions.workspace = true
rand.workspace = true
rand_chacha.workspace = true
papyrus_test_utils = { path = "../papyrus_test_utils" }

# Optional dependency required for testing.
# See [here](https://github.com/bnjbvr/cargo-machete/issues/128).
[package.metadata.cargo-machete]
ignored = ["rand"]
1 change: 0 additions & 1 deletion crates/papyrus_monitoring_gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license-file.workspace = true

[dependencies]
axum.workspace = true
futures-util.workspace = true
hyper = { workspace = true, features = ["full"] }
metrics-exporter-prometheus = { version = "0.12.1" }
metrics-process = { version = "1.0.11" }
Expand Down
1 change: 0 additions & 1 deletion crates/papyrus_network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ replace_with.workspace = true
papyrus_common = { path = "../papyrus_common", version = "0.4.0-dev.4" }
papyrus_config = { path = "../papyrus_config", version = "0.4.0-dev.4" }
serde = { workspace = true, features = ["derive"] }
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9" }
thiserror.workspace = true
tokio = { workspace = true, features = ["full", "sync"] }
tracing.workspace = true
Expand Down
5 changes: 0 additions & 5 deletions crates/papyrus_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ path = "src/bin/central_source_integration_test.rs"

[dependencies]
anyhow.workspace = true
async-stream.workspace = true
clap = { workspace = true }
const_format.workspace = true
futures.workspace = true
itertools.workspace = true
jsonrpsee = { workspace = true, features = ["full"] }
libmdbx = { workspace = true, features = ["lifetimed-bytes"] }
lazy_static.workspace = true
once_cell.workspace = true
papyrus_base_layer = { path = "../papyrus_base_layer", version = "0.4.0-dev.4" }
Expand All @@ -45,11 +42,9 @@ serde_json = { workspace = true, features = ["arbitrary_precision"] }
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9", features = ["testing"] }
starknet_client = { path = "../starknet_client" }
strum.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full", "sync"] }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
tracing.workspace = true
url.workspace = true
validator = { workspace = true, features = ["derive"] }

# Binaries dependencies
Expand Down
7 changes: 6 additions & 1 deletion crates/papyrus_p2p_sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ static_assertions.workspace = true
rand.workspace = true
rand_chacha.workspace = true
papyrus_test_utils = { path = "../papyrus_test_utils" }
papyrus_protobuf = { path = "../papyrus_protobuf", features = ["testing"]}
papyrus_protobuf = { path = "../papyrus_protobuf", features = ["testing"] }

# Optional dependency required for testing.
# See [here](https://github.com/bnjbvr/cargo-machete/issues/128).
[package.metadata.cargo-machete]
ignored = ["metrics"]
10 changes: 7 additions & 3 deletions crates/papyrus_protobuf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ repository.workspace = true
license-file.workspace = true

[features]
testing = ["rand", "rand_chacha", "papyrus_test_utils"]
testing = ["papyrus_test_utils", "rand", "rand_chacha"]

[dependencies]
bytes.workspace = true
indexmap.workspace = true
lazy_static.workspace = true
primitive-types.workspace = true
prost.workspace = true
prost-types.workspace = true
rand = { workspace = true, optional = true }
rand_chacha = { workspace = true, optional = true }
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9" }
Expand All @@ -30,3 +28,9 @@ papyrus_test_utils = { path = "../papyrus_test_utils" }

[build-dependencies]
prost-build.workspace = true


# Optional dependencies required for testing.
# See [here](https://github.com/bnjbvr/cargo-machete/issues/128).
[package.metadata.cargo-machete]
ignored = ["rand", "rand_chacha"]
4 changes: 0 additions & 4 deletions crates/papyrus_rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ base64.workspace = true
cairo-lang-starknet-classes.workspace = true
ethers.workspace = true
flate2.workspace = true
futures.workspace = true
futures-util.workspace = true
hex.workspace = true
hyper = { workspace = true, features = ["full"] }
Expand All @@ -30,12 +29,9 @@ serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["arbitrary_precision"] }
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9" }
starknet-types-core.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full", "sync"] }
tokio-stream.workspace = true
tower = { workspace = true, features = ["full"] }
tracing.workspace = true
url.workspace = true
validator = { workspace = true, features = ["derive"] }

[dev-dependencies]
Expand Down
4 changes: 0 additions & 4 deletions crates/papyrus_sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ async-stream.workspace = true
async-trait.workspace = true
cairo-lang-starknet-classes.workspace = true
chrono.workspace = true
futures-channel.workspace = true
futures-util.workspace = true
futures.workspace = true
hex.workspace = true
indexmap = { workspace = true, features = ["serde"] }
itertools.workspace = true
libmdbx = { workspace = true, features = ["lifetimed-bytes"] }
lru.workspace = true
metrics.workspace = true
papyrus_storage = { path = "../papyrus_storage", version = "0.4.0-dev.4" }
Expand All @@ -32,7 +29,6 @@ starknet-types-core.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full", "sync"] }
tracing.workspace = true
url.workspace = true

[dev-dependencies]
simple_logger.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/papyrus_test_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["arbitrary_precision"]}
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9", features = ["testing"] }
starknet-types-core = { workspace = true, features = ["hash"] }
tracing = { workspace = true, features = ["log"] }

[dev-dependencies]
pretty_assertions.workspace = true
11 changes: 8 additions & 3 deletions crates/starknet_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license-file.workspace = true
description = "A client implementation that can communicate with Starknet."

[features]
testing = ["enum-iterator", "mockall", "rand", "rand_chacha", "papyrus_test_utils"]
testing = ["enum-iterator", "mockall", "papyrus_test_utils", "rand", "rand_chacha"]

[dependencies]
async-trait.workspace = true
Expand All @@ -21,12 +21,12 @@ papyrus_common = { path = "../papyrus_common", version = "0.4.0-dev.4" }
papyrus_config = { path = "../papyrus_config", version = "0.4.0-dev.4" }
rand = { workspace = true, optional = true }
rand_chacha = { workspace = true, optional = true }
reqwest = { workspace = true, features = ["json", "blocking"] }
reqwest = { workspace = true, features = ["blocking", "json"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["arbitrary_precision"] }
serde_repr.workspace = true
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9" }
starknet-types-core = {workspace = true, features = ["serde"]}
starknet-types-core = { workspace = true, features = ["serde"] }
strum.workspace = true
strum_macros.workspace = true
papyrus_test_utils = { path = "../papyrus_test_utils", optional = true }
Expand All @@ -47,3 +47,8 @@ pretty_assertions.workspace = true
simple_logger.workspace = true
starknet_api = { path = "../starknet_api", version = "0.13.0-dev.9", features = ["testing"] }
papyrus_test_utils = { path = "../papyrus_test_utils" }

# Optional dependencies required for testing.
# See [here](https://github.com/bnjbvr/cargo-machete/issues/128).
[package.metadata.cargo-machete]
ignored = ["rand", "rand_chacha", "strum"]

0 comments on commit d852e75

Please sign in to comment.