From e21a2578d56e28bd0dc252fddcd627c600dd1a05 Mon Sep 17 00:00:00 2001 From: jakevin Date: Wed, 29 May 2024 17:34:52 +0800 Subject: [PATCH] chore(deps): remove useless deps (#8453) --- Cargo.lock | 47 ---------------------------- crates/e2e-test-utils/Cargo.toml | 4 --- crates/net/eth-wire-types/Cargo.toml | 5 --- crates/net/network/Cargo.toml | 2 -- crates/net/p2p/Cargo.toml | 2 -- crates/node-core/Cargo.toml | 3 -- crates/optimism/evm/Cargo.toml | 1 - crates/optimism/node/Cargo.toml | 1 - crates/prune/Cargo.toml | 3 -- crates/static-file/Cargo.toml | 4 --- crates/trie/Cargo.toml | 1 - examples/exex/minimal/Cargo.toml | 3 -- examples/exex/op-bridge/Cargo.toml | 3 -- examples/exex/rollup/Cargo.toml | 4 --- examples/node-custom-rpc/Cargo.toml | 1 - testing/ef-tests/Cargo.toml | 2 -- 16 files changed, 86 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ce071a3992e..841f67254c1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2703,12 +2703,10 @@ dependencies = [ "reth-interfaces", "reth-primitives", "reth-provider", - "reth-revm", "reth-stages", "serde", "serde_json", "thiserror", - "tokio", "walkdir", ] @@ -2949,11 +2947,8 @@ dependencies = [ "reth", "reth-exex", "reth-node-api", - "reth-node-core", "reth-node-ethereum", - "reth-primitives", "reth-tracing", - "tokio", ] [[package]] @@ -2963,17 +2958,14 @@ dependencies = [ "alloy-sol-types", "eyre", "futures", - "itertools 0.12.1", "reth", "reth-exex", "reth-node-api", - "reth-node-core", "reth-node-ethereum", "reth-primitives", "reth-provider", "reth-tracing", "rusqlite", - "tokio", ] [[package]] @@ -2985,21 +2977,17 @@ dependencies = [ "alloy-sol-types", "eyre", "foundry-blob-explorers", - "futures", "once_cell", "reth", - "reth-cli-runner", "reth-execution-errors", "reth-exex", "reth-node-api", - "reth-node-core", "reth-node-ethereum", "reth-primitives", "reth-provider", "reth-revm", "reth-testing-utils", "reth-tracing", - "reth-trie", "rusqlite", "secp256k1 0.28.2", "serde_json", @@ -3260,23 +3248,6 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" -[[package]] -name = "futures-test" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce388237b32ac42eca0df1ba55ed3bbda4eaf005d7d4b5dbc0b20ab962928ac9" -dependencies = [ - "futures-core", - "futures-executor", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "futures-util", - "pin-project", - "pin-utils", -] - [[package]] name = "futures-timer" version = "3.0.3" @@ -5231,7 +5202,6 @@ name = "node-custom-rpc" version = "0.0.0" dependencies = [ "clap", - "eyre", "jsonrpsee", "reth", "reth-node-ethereum", @@ -6852,12 +6822,9 @@ dependencies = [ "eyre", "futures-util", "jsonrpsee", - "rand 0.8.5", "reth", "reth-db", "reth-node-builder", - "reth-node-core", - "reth-node-ethereum", "reth-payload-builder", "reth-primitives", "reth-provider", @@ -6865,7 +6832,6 @@ dependencies = [ "reth-rpc-layer", "reth-tokio-util", "reth-tracing", - "secp256k1 0.28.2", "serde_json", "tokio", "tokio-stream", @@ -6977,7 +6943,6 @@ dependencies = [ "reth-net-common", "reth-primitives", "reth-tracing", - "secp256k1 0.28.2", "serde", "test-fuzz", "thiserror", @@ -7269,10 +7234,8 @@ dependencies = [ "enr", "fnv", "futures", - "futures-test", "humantime-serde", "itertools 0.12.1", - "linked_hash_set", "metrics", "parking_lot 0.12.3", "pin-project", @@ -7332,14 +7295,12 @@ dependencies = [ "auto_impl", "futures", "parking_lot 0.12.3", - "rand 0.8.5", "reth-consensus", "reth-eth-wire-types", "reth-network-api", "reth-network-types", "reth-primitives", "reth-storage-errors", - "secp256k1 0.28.2", "thiserror", "tokio", "tracing", @@ -7443,7 +7404,6 @@ name = "reth-node-core" version = "0.2.0-beta.7" dependencies = [ "alloy-rpc-types-engine", - "assert_matches", "clap", "const-str", "derive_more", @@ -7453,7 +7413,6 @@ dependencies = [ "futures", "humantime", "hyper 0.14.28", - "jsonrpsee", "metrics", "metrics-exporter-prometheus", "metrics-process", @@ -7490,7 +7449,6 @@ dependencies = [ "serde", "serde_json", "shellexpand", - "tempfile", "thiserror", "tikv-jemalloc-ctl", "tokio", @@ -7581,7 +7539,6 @@ dependencies = [ "reth-rpc-types-compat", "reth-tracing", "reth-transaction-pool", - "revm", "revm-primitives", "serde", "serde_json", @@ -7748,7 +7705,6 @@ name = "reth-prune" version = "0.2.0-beta.7" dependencies = [ "assert_matches", - "derive_more", "itertools 0.12.1", "metrics", "rayon", @@ -8064,8 +8020,6 @@ dependencies = [ "reth-testing-utils", "reth-tokio-util", "tempfile", - "tokio", - "tokio-stream", "tracing", ] @@ -8209,7 +8163,6 @@ dependencies = [ "revm", "serde_json", "similar-asserts", - "thiserror", "tokio", "tokio-stream", "tracing", diff --git a/crates/e2e-test-utils/Cargo.toml b/crates/e2e-test-utils/Cargo.toml index 4165044ae2e5..19fafd553682 100644 --- a/crates/e2e-test-utils/Cargo.toml +++ b/crates/e2e-test-utils/Cargo.toml @@ -10,9 +10,7 @@ repository.workspace = true [dependencies] reth.workspace = true -reth-node-core.workspace = true reth-primitives.workspace = true -reth-node-ethereum.workspace = true reth-tracing.workspace = true reth-db.workspace = true reth-rpc.workspace = true @@ -29,8 +27,6 @@ eyre.workspace = true tokio.workspace = true tokio-stream.workspace = true serde_json.workspace = true -rand.workspace = true -secp256k1.workspace = true alloy-signer.workspace = true alloy-signer-wallet = { workspace = true, features = ["mnemonic"] } alloy-rpc-types.workspace = true diff --git a/crates/net/eth-wire-types/Cargo.toml b/crates/net/eth-wire-types/Cargo.toml index 9954dba10fc0..0ed24a64e10e 100644 --- a/crates/net/eth-wire-types/Cargo.toml +++ b/crates/net/eth-wire-types/Cargo.toml @@ -35,11 +35,6 @@ reth-tracing.workspace = true test-fuzz.workspace = true tokio-util = { workspace = true, features = ["io", "codec"] } rand.workspace = true -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } arbitrary = { workspace = true, features = ["derive"] } proptest.workspace = true diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index 0c8e079f4da7..e70958450a3d 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -41,7 +41,6 @@ pin-project.workspace = true tokio = { workspace = true, features = ["io-util", "net", "macros", "rt-multi-thread", "time"] } tokio-stream.workspace = true tokio-util = { workspace = true, features = ["codec"] } -futures-test = "0.3.30" # io serde = { workspace = true, optional = true } @@ -59,7 +58,6 @@ tracing.workspace = true fnv = "1.0" thiserror.workspace = true parking_lot.workspace = true -linked_hash_set = "0.1" rand.workspace = true secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } derive_more.workspace = true diff --git a/crates/net/p2p/Cargo.toml b/crates/net/p2p/Cargo.toml index 0e3146ab6f39..46ce37a38491 100644 --- a/crates/net/p2p/Cargo.toml +++ b/crates/net/p2p/Cargo.toml @@ -34,9 +34,7 @@ parking_lot = { workspace = true, optional = true } reth-consensus = { workspace = true, features = ["test-utils"] } parking_lot.workspace = true -rand.workspace = true tokio = { workspace = true, features = ["full"] } -secp256k1 = { workspace = true, features = ["alloc", "recovery", "rand"] } [features] test-utils = ["reth-consensus/test-utils", "parking_lot"] diff --git a/crates/node-core/Cargo.toml b/crates/node-core/Cargo.toml index 6b8a35c7994a..8f536e471ab9 100644 --- a/crates/node-core/Cargo.toml +++ b/crates/node-core/Cargo.toml @@ -94,9 +94,6 @@ procfs = "0.16.0" [dev-dependencies] # test vectors generation proptest.workspace = true -tempfile.workspace = true -jsonrpsee.workspace = true -assert_matches.workspace = true [features] optimism = [ diff --git a/crates/optimism/evm/Cargo.toml b/crates/optimism/evm/Cargo.toml index 0423f1bd7dd6..c3f4643b2271 100644 --- a/crates/optimism/evm/Cargo.toml +++ b/crates/optimism/evm/Cargo.toml @@ -37,6 +37,5 @@ reth-revm = { workspace = true, features = ["test-utils"] } optimism = [ "reth-primitives/optimism", "reth-provider/optimism", - "revm-primitives/optimism", "reth-optimism-consensus/optimism", ] diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 9432ce9edb5b..ddd2fb283896 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -30,7 +30,6 @@ reth-evm.workspace = true reth-revm.workspace = true reth-evm-optimism.workspace = true reth-beacon-consensus.workspace = true -revm.workspace = true revm-primitives.workspace = true # async diff --git a/crates/prune/Cargo.toml b/crates/prune/Cargo.toml index 65b4ba19c6c1..a645dd40a44a 100644 --- a/crates/prune/Cargo.toml +++ b/crates/prune/Cargo.toml @@ -37,7 +37,4 @@ reth-db = { workspace = true, features = ["test-utils"] } reth-stages = { workspace = true, features = ["test-utils"] } reth-tracing.workspace = true -# misc -derive_more.workspace = true - assert_matches.workspace = true diff --git a/crates/static-file/Cargo.toml b/crates/static-file/Cargo.toml index 290ffa4eb220..67da49960b64 100644 --- a/crates/static-file/Cargo.toml +++ b/crates/static-file/Cargo.toml @@ -20,10 +20,6 @@ reth-storage-errors.workspace = true reth-nippy-jar.workspace = true reth-tokio-util.workspace = true -# async -tokio.workspace = true -tokio-stream.workspace = true - # misc tracing.workspace = true rayon.workspace = true diff --git a/crates/trie/Cargo.toml b/crates/trie/Cargo.toml index e20e6dd6fd77..a09615d2203b 100644 --- a/crates/trie/Cargo.toml +++ b/crates/trie/Cargo.toml @@ -26,7 +26,6 @@ alloy-rlp.workspace = true tracing.workspace = true # misc -thiserror.workspace = true derive_more.workspace = true auto_impl.workspace = true diff --git a/examples/exex/minimal/Cargo.toml b/examples/exex/minimal/Cargo.toml index a7bcc327ac16..afbafce8b71a 100644 --- a/examples/exex/minimal/Cargo.toml +++ b/examples/exex/minimal/Cargo.toml @@ -9,11 +9,8 @@ license.workspace = true reth.workspace = true reth-exex.workspace = true reth-node-api.workspace = true -reth-node-core.workspace = true reth-node-ethereum.workspace = true -reth-primitives.workspace = true reth-tracing.workspace = true eyre.workspace = true -tokio.workspace = true futures.workspace = true diff --git a/examples/exex/op-bridge/Cargo.toml b/examples/exex/op-bridge/Cargo.toml index d8669e914737..5145080c1b11 100644 --- a/examples/exex/op-bridge/Cargo.toml +++ b/examples/exex/op-bridge/Cargo.toml @@ -9,15 +9,12 @@ license.workspace = true reth.workspace = true reth-exex.workspace = true reth-node-api.workspace = true -reth-node-core.workspace = true reth-node-ethereum.workspace = true reth-primitives.workspace = true reth-provider.workspace = true reth-tracing.workspace = true eyre.workspace = true -tokio.workspace = true futures.workspace = true alloy-sol-types = { workspace = true, features = ["json"] } -itertools.workspace = true rusqlite = { version = "0.31.0", features = ["bundled"] } diff --git a/examples/exex/rollup/Cargo.toml b/examples/exex/rollup/Cargo.toml index bea03566618e..5a4dcb5f4fea 100644 --- a/examples/exex/rollup/Cargo.toml +++ b/examples/exex/rollup/Cargo.toml @@ -8,20 +8,16 @@ license.workspace = true [dependencies] # reth reth.workspace = true -reth-cli-runner.workspace = true reth-exex.workspace = true reth-node-api.workspace = true -reth-node-core.workspace = true reth-node-ethereum.workspace = true reth-primitives.workspace = true reth-execution-errors.workspace = true reth-provider.workspace = true reth-revm.workspace = true reth-tracing.workspace = true -reth-trie.workspace = true # async -futures.workspace = true tokio.workspace = true # misc diff --git a/examples/node-custom-rpc/Cargo.toml b/examples/node-custom-rpc/Cargo.toml index f1c5d95d9f1d..473e9acaf9fa 100644 --- a/examples/node-custom-rpc/Cargo.toml +++ b/examples/node-custom-rpc/Cargo.toml @@ -12,7 +12,6 @@ reth-node-ethereum.workspace = true clap = { workspace = true, features = ["derive"] } jsonrpsee = { workspace = true, features = ["server", "macros"] } -eyre.workspace = true [dev-dependencies] tokio.workspace = true diff --git a/testing/ef-tests/Cargo.toml b/testing/ef-tests/Cargo.toml index 2584c42d67c5..d89baf4108f3 100644 --- a/testing/ef-tests/Cargo.toml +++ b/testing/ef-tests/Cargo.toml @@ -21,11 +21,9 @@ reth-db = { workspace = true, features = ["mdbx", "test-utils"] } reth-provider = { workspace = true, features = ["test-utils"] } reth-stages.workspace = true reth-interfaces.workspace = true -reth-revm.workspace = true reth-evm-ethereum.workspace = true alloy-rlp.workspace = true -tokio.workspace = true walkdir = "2.3.3" serde.workspace = true serde_json.workspace = true