mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: re-export rpc types (#14381)
This commit is contained in:
@ -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"]
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user