diff --git a/Cargo.lock b/Cargo.lock index f0d9f2906..f1ba11884 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6990,11 +6990,9 @@ name = "reth-engine-tree" version = "1.0.3" dependencies = [ "alloy-rlp", - "aquamarine", "assert_matches", "futures", "metrics", - "parking_lot 0.12.3", "rand 0.8.5", "reth-beacon-consensus", "reth-blockchain-tree", @@ -7006,7 +7004,6 @@ dependencies = [ "reth-db-api", "reth-engine-primitives", "reth-errors", - "reth-ethereum-consensus", "reth-ethereum-engine-primitives", "reth-evm", "reth-exex-types", @@ -7027,12 +7024,9 @@ dependencies = [ "reth-stages-types", "reth-static-file", "reth-tasks", - "reth-tokio-util", "reth-tracing", "reth-trie", - "revm", "tokio", - "tokio-stream", "tracing", ] diff --git a/crates/engine/tree/Cargo.toml b/crates/engine/tree/Cargo.toml index ad1c0fc18..a65397603 100644 --- a/crates/engine/tree/Cargo.toml +++ b/crates/engine/tree/Cargo.toml @@ -15,14 +15,12 @@ workspace = true reth-beacon-consensus.workspace = true reth-blockchain-tree.workspace = true reth-blockchain-tree-api.workspace = true -reth-chainspec.workspace = true reth-chain-state.workspace = true reth-consensus.workspace = true reth-db.workspace = true reth-db-api.workspace = true reth-engine-primitives.workspace = true reth-errors.workspace = true -reth-ethereum-consensus.workspace = true reth-evm.workspace = true reth-network-p2p.workspace = true reth-payload-builder.workspace = true @@ -31,50 +29,46 @@ reth-payload-validator.workspace = true reth-primitives.workspace = true reth-provider.workspace = true reth-prune.workspace = true -reth-prune-types.workspace = true reth-revm.workspace = true reth-rpc-types.workspace = true reth-stages-api.workspace = true reth-stages-types.workspace = true -reth-static-file.workspace = true reth-tasks.workspace = true -reth-tokio-util.workspace = true reth-trie.workspace = true -revm.workspace = true # common futures.workspace = true tokio = { workspace = true, features = ["macros", "sync"] } -tokio-stream = { workspace = true, features = ["sync"] } - # metrics metrics.workspace = true reth-metrics = { workspace = true, features = ["common"] } # misc -aquamarine.workspace = true -parking_lot.workspace = true tracing.workspace = true # optional deps for test-utils +reth-chainspec = { workspace = true, optional = true } +reth-prune-types = { workspace = true, optional = true } reth-stages = { workspace = true, optional = true } +reth-static-file = { workspace = true, optional = true } reth-tracing = { workspace = true, optional = true } -rand = { workspace = true, optional = true } [dev-dependencies] # reth reth-db = { workspace = true, features = ["test-utils"] } +reth-chainspec.workspace = true +reth-chain-state = { workspace = true, features = ["test-utils"] } reth-ethereum-engine-primitives.workspace = true reth-evm = { workspace = true, features = ["test-utils"] } reth-exex-types.workspace = true reth-network-p2p = { workspace = true, features = ["test-utils"] } reth-prune.workspace = true reth-prune-types.workspace = true -reth-stages = { workspace = true, features = ["test-utils"] } -reth-chain-state = { workspace = true, features = ["test-utils"] } -reth-tracing.workspace = true reth-rpc-types-compat.workspace = true +reth-stages = { workspace = true, features = ["test-utils"] } +reth-static-file.workspace = true +reth-tracing.workspace = true alloy-rlp.workspace = true @@ -84,9 +78,11 @@ rand.workspace = true [features] test-utils = [ "reth-db/test-utils", - "reth-network-p2p/test-utils", - "reth-stages/test-utils", "reth-chain-state/test-utils", + "reth-chainspec", + "reth-network-p2p/test-utils", + "reth-prune-types", + "reth-stages/test-utils", + "reth-static-file", "reth-tracing", - "rand" ] diff --git a/crates/engine/tree/src/lib.rs b/crates/engine/tree/src/lib.rs index d238bf879..4dc37f416 100644 --- a/crates/engine/tree/src/lib.rs +++ b/crates/engine/tree/src/lib.rs @@ -10,7 +10,7 @@ issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" )] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] -// #![cfg_attr(not(test), warn(unused_crate_dependencies))] +#![cfg_attr(not(test), warn(unused_crate_dependencies))] #![allow(missing_docs, dead_code, missing_debug_implementations, unused_variables)] // TODO rm /// Re-export of the blockchain tree API.