Skip to content

Commit

Permalink
fix: remove unused dependencies (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware authored Jul 11, 2024
1 parent 1dd32d2 commit 3fa9b2f
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 45 deletions.
21 changes: 0 additions & 21 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ async-stream = "0.3.3"
async-trait = "0.1.56"
axum = "0.6.12"
base64 = "0.13.0"
bitvec = "1.0.1"
blockifier = "0.8.0-dev.1"
bytes = "1"
byteorder = "1.4.3"
Expand All @@ -79,7 +78,6 @@ enum-iterator = "1.4.1"
ethers = "2.0.3"
flate2 = "1.0.24"
futures = "0.3.21"
futures-channel = "0.3.21"
futures-util = "0.3.21"
hex = "0.4.3"
http = "0.2.8"
Expand Down Expand Up @@ -131,7 +129,6 @@ sha3 = "0.10.8"
simple_logger = "4.0.0"
starknet_api = "0.13.0-dev.9"
starknet-core = "0.6.0"
starknet-crypto = "0.5.1"
starknet-types-core = "0.1.5"
static_assertions = "1.1.0"
statistical = "1.0.0"
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.workspace = true
starknet-crypto.workspace = true
starknet-types-core = { workspace = true, features = ["hash"] }
thiserror.workspace = true
rand.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions crates/papyrus_execution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ pretty_assertions.workspace = true
rand.workspace = true
rand_chacha.workspace = true
test_utils = { path = "../test_utils" }

[package.metadata.cargo-machete]
# The `rand` crate is used in the `testing` feature, which is optional.
ignored = ["rand"]
2 changes: 1 addition & 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 All @@ -27,4 +26,5 @@ http-body = { version = "0.4.5" }
metrics.workspace = true
papyrus_storage = { path = "../papyrus_storage", features = ["testing"] }
pretty_assertions.workspace = true
starknet_client = { path = "../starknet_client", features = ["testing"] }
tower = { workspace = true, features = ["util"] }
1 change: 0 additions & 1 deletion crates/papyrus_network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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.workspace = true
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 = { workspace = true, 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
5 changes: 4 additions & 1 deletion crates/papyrus_p2p_sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license-file.workspace = true

[dependencies]
async-stream.workspace = true
derive_more.workspace = true
enum-iterator.workspace = true
futures.workspace = true
indexmap.workspace = true
Expand Down Expand Up @@ -36,3 +35,7 @@ rand.workspace = true
rand_chacha.workspace = true
test_utils = { path = "../test_utils" }
papyrus_protobuf = { path = "../papyrus_protobuf", features = ["testing"]}

# The `metrics` crate is used by `latency_histogram` proc macro, which is used in this crate.
[package.metadata.cargo-machete]
ignored = ["metrics"]
6 changes: 4 additions & 2 deletions crates/papyrus_protobuf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ license-file.workspace = true
testing = ["rand", "rand_chacha", "test_utils"]

[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.workspace = true
Expand All @@ -30,3 +28,7 @@ test_utils = { path = "../test_utils" }

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

[package.metadata.cargo-machete]
# The `rand` and `rand_chacha` crates are used in the `testing` feature, which is optional.
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.workspace = true
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
5 changes: 5 additions & 0 deletions crates/starknet_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ pretty_assertions.workspace = true
simple_logger.workspace = true
starknet_api = { workspace = true, features = ["testing"] }
test_utils = { path = "../test_utils" }

[package.metadata.cargo-machete]
# The `rand` and `rand_chacha` crates are used in the `testing` feature, which is optional.
# `strum` is used by `EnumIter` which is used in this crate.
ignored = ["rand", "rand_chacha", "strum"]
1 change: 0 additions & 1 deletion crates/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 = { workspace = true, features = ["testing"] }
starknet-types-core = { workspace = true, features = ["hash"] }
tracing = { workspace = true, features = ["log"] }

[dev-dependencies]
pretty_assertions.workspace = true

0 comments on commit 3fa9b2f

Please sign in to comment.