chore: introduce engine module (#17591)

This commit is contained in:
Matthias Seitz
2025-07-24 10:42:18 +02:00
committed by GitHub
parent dc90eb2ffe
commit 876e964cbc
5 changed files with 25 additions and 1 deletions

2
Cargo.lock generated
View File

@@ -8179,6 +8179,7 @@ dependencies = [
"reth-consensus",
"reth-consensus-common",
"reth-db",
"reth-engine-local",
"reth-eth-wire",
"reth-ethereum-cli",
"reth-ethereum-consensus",
@@ -9066,6 +9067,7 @@ dependencies = [
"reth-consensus",
"reth-consensus-common",
"reth-db",
"reth-engine-local",
"reth-eth-wire",
"reth-evm",
"reth-exex",

View File

@@ -38,6 +38,7 @@ reth-trie-db = { workspace = true, optional = true }
reth-node-builder = { workspace = true, optional = true }
reth-tasks = { workspace = true, optional = true }
reth-cli-util = { workspace = true, optional = true }
reth-engine-local = { workspace = true, optional = true }
# reth-ethereum
reth-ethereum-primitives.workspace = true
@@ -126,6 +127,7 @@ node = [
"node-api",
"dep:reth-node-ethereum",
"dep:reth-node-builder",
"dep:reth-engine-local",
"rpc",
"trie-db",
]

View File

@@ -115,6 +115,15 @@ pub mod node {
pub use reth_node_ethereum::*;
}
/// Re-exported ethereum engine types
#[cfg(feature = "node")]
pub mod engine {
#[doc(inline)]
pub use reth_engine_local as local;
#[doc(inline)]
pub use reth_node_ethereum::engine::*;
}
/// Re-exported reth trie types
#[cfg(feature = "trie")]
pub mod trie {

View File

@@ -38,6 +38,7 @@ reth-trie-db = { workspace = true, optional = true }
reth-node-builder = { workspace = true, optional = true }
reth-tasks = { workspace = true, optional = true }
reth-cli-util = { workspace = true, optional = true }
reth-engine-local = { workspace = true, optional = true }
# reth-op
reth-optimism-primitives.workspace = true
@@ -110,6 +111,7 @@ node = [
"node-api",
"dep:reth-optimism-node",
"dep:reth-node-builder",
"dep:reth-engine-local",
"rpc",
"trie-db",
]

View File

@@ -111,7 +111,7 @@ pub mod storage {
pub use reth_storage_api::*;
}
/// Re-exported ethereum node
/// Re-exported optimism node
#[cfg(feature = "node-api")]
pub mod node {
#[doc(inline)]
@@ -124,6 +124,15 @@ pub mod node {
pub use reth_optimism_node::*;
}
/// Re-exported engine types
#[cfg(feature = "node")]
pub mod engine {
#[doc(inline)]
pub use reth_engine_local as local;
#[doc(inline)]
pub use reth_optimism_node::engine::*;
}
/// Re-exported reth trie types
#[cfg(feature = "trie")]
pub mod trie {