Skip to content

Commit 8123d6b

Browse files
authored
feat: reexport reth-trie with trie feature (#14513)
1 parent e4c8e47 commit 8123d6b

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ethereum/reth/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ reth-rpc-api = { workspace = true, optional = true }
2727
reth-rpc-eth-types = { workspace = true, optional = true }
2828
reth-rpc-builder = { workspace = true, optional = true }
2929
reth-exex = { workspace = true, optional = true }
30+
reth-trie = { workspace = true, optional = true }
3031

3132
# reth-ethereum
3233
reth-ethereum-primitives.workspace = true
@@ -68,19 +69,21 @@ test-utils = [
6869
"reth-node-ethereum?/test-utils",
6970
"reth-primitives-traits/test-utils",
7071
"reth-provider?/test-utils",
72+
"reth-trie?/test-utils",
7173
]
7274

73-
full = ["consensus", "evm", "node", "provider", "rpc", "exex"]
75+
full = ["consensus", "evm", "node", "provider", "rpc", "exex", "trie"]
7476

7577
alloy-compat = ["reth-ethereum-primitives/alloy-compat"]
7678
cli = ["dep:reth-ethereum-cli"]
7779
consensus = ["dep:reth-consensus", "dep:reth-consensus-common", "dep:reth-ethereum-consensus"]
7880
evm = ["dep:reth-evm", "dep:reth-evm-ethereum"]
7981
exex = ["provider", "dep:reth-exex"]
8082
node-api = ["dep:reth-node-api"]
81-
node = ["provider", "consensus", "evm", "node-api", "dep:reth-node-ethereum", "rpc"]
83+
node = ["provider", "consensus", "evm", "node-api", "dep:reth-node-ethereum", "rpc", "trie"]
8284
rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types", "dep:alloy-rpc-types-eth"]
8385
js-tracer = ["rpc", "reth-rpc/js-tracer"]
8486
network = ["dep:reth-network"]
8587
provider = ["storage-api", "dep:reth-provider", "dep:reth-db"]
8688
storage-api = ["dep:reth-storage-api"]
89+
trie = ["dep:reth-trie"]

crates/ethereum/reth/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ pub mod node {
8585
pub use reth_node_ethereum::*;
8686
}
8787

88+
/// Re-exported reth trie types
89+
#[cfg(feature = "trie")]
90+
pub mod trie {
91+
#[doc(inline)]
92+
pub use reth_trie::*;
93+
}
94+
8895
/// Re-exported rpc types
8996
#[cfg(feature = "rpc")]
9097
pub mod rpc {

crates/optimism/reth/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ reth-rpc = { workspace = true, optional = true }
2626
reth-rpc-api = { workspace = true, optional = true }
2727
reth-rpc-eth-types = { workspace = true, optional = true }
2828
reth-rpc-builder = { workspace = true, optional = true }
29+
reth-trie = { workspace = true, optional = true }
2930

3031
# reth-op
3132
reth-optimism-primitives.workspace = true
@@ -65,20 +66,22 @@ test-utils = [
6566
"reth-optimism-node?/test-utils",
6667
"reth-primitives-traits/test-utils",
6768
"reth-provider?/test-utils",
69+
"reth-trie?/test-utils",
6870
]
6971

70-
full = ["consensus", "evm", "node", "provider", "rpc"]
72+
full = ["consensus", "evm", "node", "provider", "rpc", "trie"]
7173

7274
alloy-compat = []
7375
consensus = ["dep:reth-consensus", "dep:reth-consensus-common", "dep:reth-optimism-consensus"]
7476
evm = ["dep:reth-evm", "dep:reth-optimism-evm"]
7577
node-api = ["dep:reth-node-api"]
76-
node = ["provider", "consensus", "evm", "node-api", "dep:reth-optimism-node", "rpc"]
78+
node = ["provider", "consensus", "evm", "node-api", "dep:reth-optimism-node", "rpc", "trie"]
7779
rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types", "dep:reth-optimism-rpc"]
7880
js-tracer = ["rpc", "reth-rpc/js-tracer"]
7981
network = ["dep:reth-network"]
8082
provider = ["storage-api", "dep:reth-provider", "dep:reth-db"]
8183
storage-api = ["dep:reth-storage-api"]
84+
trie = ["dep:reth-trie"]
8285
optimism = [
8386
"reth-db?/optimism",
8487
"reth-optimism-consensus?/optimism",

crates/optimism/reth/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ pub mod node {
8787
pub use reth_optimism_node::*;
8888
}
8989

90+
/// Re-exported reth trie types
91+
#[cfg(feature = "trie")]
92+
pub mod trie {
93+
#[doc(inline)]
94+
pub use reth_trie::*;
95+
}
96+
9097
/// Re-exported rpc types
9198
#[cfg(feature = "rpc")]
9299
pub mod rpc {

0 commit comments

Comments
 (0)