From 2e8bc7d4b2a1a3da0b4eb587b097e9b98b2230e8 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 10 Feb 2025 19:14:09 +0100 Subject: [PATCH] chore: re-export rpc types (#14381) --- Cargo.lock | 4 ++++ crates/ethereum/reth/Cargo.toml | 10 ++++++++-- crates/ethereum/reth/src/lib.rs | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7db01fdd3..15f994f4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7503,6 +7503,10 @@ dependencies = [ "reth-node-ethereum", "reth-primitives-traits", "reth-provider", + "reth-rpc", + "reth-rpc-api", + "reth-rpc-builder", + "reth-rpc-eth-types", "reth-storage-api", ] diff --git a/crates/ethereum/reth/Cargo.toml b/crates/ethereum/reth/Cargo.toml index ad013615c..d35d37678 100644 --- a/crates/ethereum/reth/Cargo.toml +++ b/crates/ethereum/reth/Cargo.toml @@ -22,6 +22,10 @@ reth-node-api = { workspace = true, optional = true } reth-consensus = { workspace = true, optional = true } reth-consensus-common = { workspace = true, optional = true } reth-evm = { workspace = true, optional = true } +reth-rpc = { workspace = true, optional = true } +reth-rpc-api = { workspace = true, optional = true } +reth-rpc-eth-types = { workspace = true, optional = true } +reth-rpc-builder = { workspace = true, optional = true } # reth-ethereum reth-ethereum-primitives.workspace = true @@ -58,13 +62,15 @@ test-utils = [ "reth-provider?/test-utils", ] -full = ["consensus", "evm", "node", "provider"] +full = ["consensus", "evm", "node", "provider", "rpc"] alloy-compat = ["reth-ethereum-primitives/alloy-compat"] consensus = ["dep:reth-consensus", "dep:reth-consensus-common", "dep:reth-ethereum-consensus"] evm = ["dep:reth-evm", "dep:reth-evm-ethereum"] node-api = ["dep:reth-node-api"] -node = ["provider", "consensus", "evm", "node-api", "dep:reth-node-ethereum"] +node = ["provider", "consensus", "evm", "node-api", "dep:reth-node-ethereum", "rpc"] +rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types"] +js-tracer = ["rpc", "reth-rpc/js-tracer"] network = ["dep:reth-network"] provider = ["storage-api", "dep:reth-provider", "dep:reth-db"] storage-api = ["dep:reth-storage-api"] diff --git a/crates/ethereum/reth/src/lib.rs b/crates/ethereum/reth/src/lib.rs index d0a77a632..4d6d07648 100644 --- a/crates/ethereum/reth/src/lib.rs +++ b/crates/ethereum/reth/src/lib.rs @@ -76,3 +76,17 @@ pub mod node { #[cfg(feature = "node")] pub use reth_node_ethereum::*; } + +/// Re-exported rpc types +#[cfg(feature = "rpc")] +pub mod rpc { + #[doc(inline)] + pub use reth_rpc::*; + + #[doc(inline)] + pub use reth_rpc_api as api; + #[doc(inline)] + pub use reth_rpc_builder as builder; + #[doc(inline)] + pub use reth_rpc_eth_types as eth; +}