feat: add codec re-exports to reth-op and reth-ethereum (#17020)

This commit is contained in:
Matthias Seitz
2025-06-23 22:29:25 +02:00
committed by GitHub
parent 2563a168ee
commit cf8ff9829c
5 changed files with 18 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -8131,6 +8131,7 @@ dependencies = [
"alloy-rpc-types-eth",
"reth-chainspec",
"reth-cli-util",
"reth-codecs",
"reth-consensus",
"reth-consensus-common",
"reth-db",
@@ -9026,6 +9027,7 @@ version = "1.4.8"
dependencies = [
"reth-chainspec",
"reth-cli-util",
"reth-codecs",
"reth-consensus",
"reth-consensus-common",
"reth-db",

View File

@@ -19,6 +19,7 @@ reth-network-api = { workspace = true, optional = true }
reth-eth-wire = { workspace = true, optional = true }
reth-provider = { workspace = true, optional = true }
reth-db = { workspace = true, optional = true, features = ["mdbx"] }
reth-codecs = { workspace = true, optional = true }
reth-storage-api = { workspace = true, optional = true }
reth-node-api = { workspace = true, optional = true }
reth-node-core = { workspace = true, optional = true }
@@ -75,6 +76,7 @@ arbitrary = [
"reth-transaction-pool?/arbitrary",
"reth-eth-wire?/arbitrary",
"alloy-rpc-types-engine?/arbitrary",
"reth-codecs?/arbitrary",
]
test-utils = [
@@ -93,6 +95,7 @@ test-utils = [
"reth-evm-ethereum?/test-utils",
"reth-node-builder?/test-utils",
"reth-trie-db?/test-utils",
"reth-codecs?/test-utils",
]
full = [
@@ -139,7 +142,7 @@ rpc = [
tasks = ["dep:reth-tasks"]
js-tracer = ["rpc", "reth-rpc/js-tracer"]
network = ["dep:reth-network", "tasks", "dep:reth-network-api", "dep:reth-eth-wire"]
provider = ["storage-api", "tasks", "dep:reth-provider", "dep:reth-db"]
provider = ["storage-api", "tasks", "dep:reth-provider", "dep:reth-db", "dep:reth-codecs"]
storage-api = ["dep:reth-storage-api"]
trie = ["dep:reth-trie"]
trie-db = ["trie", "dep:reth-trie-db"]

View File

@@ -91,6 +91,10 @@ pub mod provider {
pub use reth_db as db;
}
/// Re-exported codec crate
#[cfg(feature = "provider")]
pub use reth_codecs as codec;
/// Re-exported reth storage api types
#[cfg(feature = "storage-api")]
pub mod storage {

View File

@@ -19,6 +19,7 @@ reth-network-api = { workspace = true, optional = true }
reth-eth-wire = { workspace = true, optional = true }
reth-provider = { workspace = true, optional = true }
reth-db = { workspace = true, optional = true, features = ["mdbx", "op"] }
reth-codecs = { workspace = true, optional = true }
reth-storage-api = { workspace = true, optional = true }
reth-node-api = { workspace = true, optional = true }
reth-node-core = { workspace = true, optional = true }
@@ -70,6 +71,7 @@ arbitrary = [
"reth-db?/arbitrary",
"reth-transaction-pool?/arbitrary",
"reth-eth-wire?/arbitrary",
"reth-codecs?/arbitrary",
]
test-utils = [
@@ -86,6 +88,7 @@ test-utils = [
"reth-transaction-pool?/test-utils",
"reth-node-builder?/test-utils",
"reth-trie-db?/test-utils",
"reth-codecs?/test-utils",
]
full = ["consensus", "evm", "node", "provider", "rpc", "trie", "pool", "network"]
@@ -121,7 +124,7 @@ rpc = [
tasks = ["dep:reth-tasks"]
js-tracer = ["rpc", "reth-rpc/js-tracer"]
network = ["dep:reth-network", "tasks", "dep:reth-network-api", "dep:reth-eth-wire"]
provider = ["storage-api", "tasks", "dep:reth-provider", "dep:reth-db"]
provider = ["storage-api", "tasks", "dep:reth-provider", "dep:reth-db", "dep:reth-codecs"]
pool = ["dep:reth-transaction-pool"]
storage-api = ["dep:reth-storage-api"]
trie = ["dep:reth-trie"]

View File

@@ -100,6 +100,10 @@ pub mod provider {
pub use reth_db as db;
}
/// Re-exported codec crate
#[cfg(feature = "provider")]
pub use reth_codecs as codec;
/// Re-exported reth storage api types
#[cfg(feature = "storage-api")]
pub mod storage {