refactor: move node-core/engine to standalone crate (#9120)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Thomas Coratger
2024-06-26 17:34:35 +02:00
committed by GitHub
parent 8775a93d33
commit 1fde1dca1e
13 changed files with 70 additions and 12 deletions

View File

@ -0,0 +1,42 @@
[package]
name = "reth-engine-util"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
[lints]
workspace = true
[dependencies]
# reth
reth-fs-util.workspace = true
reth-rpc.workspace = true
reth-rpc-types.workspace = true
reth-engine-primitives.workspace = true
reth-beacon-consensus.workspace = true
# async
tokio-util.workspace = true
pin-project.workspace = true
# misc
eyre.workspace = true
# io
serde.workspace = true
serde_json.workspace = true
# tracing
tracing.workspace = true
# async
futures.workspace = true
[features]
optimism = [
"reth-rpc/optimism",
"reth-beacon-consensus/optimism",
]

View File

@ -33,7 +33,6 @@ reth-discv4.workspace = true
reth-discv5.workspace = true
reth-net-nat.workspace = true
reth-network-peers.workspace = true
reth-engine-primitives.workspace = true
reth-tasks.workspace = true
reth-consensus-common.workspace = true
reth-beacon-consensus.workspace = true
@ -46,8 +45,6 @@ alloy-rpc-types-engine.workspace = true
# async
tokio.workspace = true
tokio-util.workspace = true
pin-project.workspace = true
# metrics
reth-metrics.workspace = true
@ -69,7 +66,6 @@ once_cell.workspace = true
# io
dirs-next = "2.0.0"
shellexpand = "3.0.0"
serde.workspace = true
serde_json.workspace = true
# http/rpc

View File

@ -11,7 +11,6 @@
pub mod args;
pub mod cli;
pub mod dirs;
pub mod engine;
pub mod exit;
pub mod metrics;
pub mod node_config;

View File

@ -45,6 +45,7 @@ reth-node-events.workspace = true
reth-consensus.workspace = true
reth-consensus-debug-client.workspace = true
reth-rpc-types.workspace = true
reth-engine-util.workspace = true
## async
futures.workspace = true

View File

@ -13,17 +13,16 @@ use reth_beacon_consensus::{
BeaconConsensusEngine,
};
use reth_consensus_debug_client::{DebugConsensusClient, EtherscanBlockProvider, RpcBlockProvider};
use reth_engine_util::EngineMessageStreamExt;
use reth_exex::ExExManagerHandle;
use reth_network::NetworkEvents;
use reth_node_api::FullNodeTypes;
use reth_node_core::{
dirs::{ChainPath, DataDirPath},
engine::EngineMessageStreamExt,
exit::NodeExitFuture,
version::{CARGO_PKG_VERSION, CLIENT_CODE, NAME_CLIENT, VERGEN_GIT_SHA},
};
use reth_node_events::{cl::ConsensusLayerHealthEvents, node};
use reth_primitives::format_ether;
use reth_provider::providers::BlockchainProvider;
use reth_rpc_engine_api::EngineApi;