diff --git a/Cargo.lock b/Cargo.lock index 1c353a1562..aedc8a659c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8002,6 +8002,7 @@ dependencies = [ "reth-network", "reth-network-api", "reth-node-api", + "reth-node-builder", "reth-node-core", "reth-node-ethereum", "reth-primitives-traits", @@ -8887,6 +8888,7 @@ dependencies = [ "reth-network", "reth-network-api", "reth-node-api", + "reth-node-builder", "reth-node-core", "reth-optimism-chainspec", "reth-optimism-cli", diff --git a/crates/ethereum/reth/Cargo.toml b/crates/ethereum/reth/Cargo.toml index 593bcd6cec..35f4b37370 100644 --- a/crates/ethereum/reth/Cargo.toml +++ b/crates/ethereum/reth/Cargo.toml @@ -33,6 +33,7 @@ reth-rpc-eth-types = { workspace = true, optional = true } reth-rpc-builder = { workspace = true, optional = true } reth-exex = { workspace = true, optional = true } reth-trie = { workspace = true, optional = true } +reth-node-builder = { workspace = true, optional = true } # reth-ethereum reth-ethereum-primitives.workspace = true @@ -84,6 +85,7 @@ test-utils = [ "reth-trie?/test-utils", "reth-transaction-pool?/test-utils", "reth-evm-ethereum?/test-utils", + "reth-node-builder?/test-utils", ] full = [ @@ -113,6 +115,7 @@ node = [ "evm", "node-api", "dep:reth-node-ethereum", + "dep:reth-node-builder", "rpc", "trie", ] diff --git a/crates/ethereum/reth/src/lib.rs b/crates/ethereum/reth/src/lib.rs index 26b0f34d27..6ea449aa00 100644 --- a/crates/ethereum/reth/src/lib.rs +++ b/crates/ethereum/reth/src/lib.rs @@ -92,6 +92,8 @@ pub mod storage { pub mod node { #[doc(inline)] pub use reth_node_api as api; + #[cfg(feature = "node")] + pub use reth_node_builder as builder; #[doc(inline)] pub use reth_node_core as core; #[cfg(feature = "node")] diff --git a/crates/optimism/reth/Cargo.toml b/crates/optimism/reth/Cargo.toml index f4f8606114..96353f42db 100644 --- a/crates/optimism/reth/Cargo.toml +++ b/crates/optimism/reth/Cargo.toml @@ -32,6 +32,7 @@ reth-rpc-eth-types = { workspace = true, optional = true } reth-rpc-builder = { workspace = true, optional = true } reth-transaction-pool = { workspace = true, optional = true } reth-trie = { workspace = true, optional = true } +reth-node-builder = { workspace = true, optional = true } # reth-op reth-optimism-primitives.workspace = true @@ -79,6 +80,7 @@ test-utils = [ "reth-provider?/test-utils", "reth-trie?/test-utils", "reth-transaction-pool?/test-utils", + "reth-node-builder?/test-utils", ] full = ["consensus", "evm", "node", "provider", "rpc", "trie", "pool", "network"] @@ -98,6 +100,7 @@ node = [ "evm", "node-api", "dep:reth-optimism-node", + "dep:reth-node-builder", "rpc", "trie", ] diff --git a/crates/optimism/reth/src/lib.rs b/crates/optimism/reth/src/lib.rs index f043322404..1769a0423c 100644 --- a/crates/optimism/reth/src/lib.rs +++ b/crates/optimism/reth/src/lib.rs @@ -96,6 +96,8 @@ pub mod storage { pub mod node { #[doc(inline)] pub use reth_node_api as api; + #[cfg(feature = "node")] + pub use reth_node_builder as builder; #[doc(inline)] pub use reth_node_core as core; #[cfg(feature = "node")]