chore: re-export rpc types (#14381)

This commit is contained in:
Matthias Seitz
2025-02-10 19:14:09 +01:00
committed by GitHub
parent 4d9a98780f
commit 2e8bc7d4b2
3 changed files with 26 additions and 2 deletions

4
Cargo.lock generated
View File

@ -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",
]

View File

@ -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"]

View File

@ -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;
}