diff --git a/bin/reth/src/cli/node_builder.rs b/bin/reth/src/builder/mod.rs similarity index 99% rename from bin/reth/src/cli/node_builder.rs rename to bin/reth/src/builder/mod.rs index c8daa40647..a4de50a74d 100644 --- a/bin/reth/src/cli/node_builder.rs +++ b/bin/reth/src/builder/mod.rs @@ -1,5 +1,5 @@ //! Support for customizing the node -use super::{components::RethRpcServerHandles, ext::DefaultRethNodeCommandConfig}; +use super::cli::{components::RethRpcServerHandles, ext::DefaultRethNodeCommandConfig}; use crate::{ args::{ get_secret_key, DatabaseArgs, DebugArgs, DevArgs, NetworkArgs, PayloadBuilderArgs, @@ -113,8 +113,8 @@ pub static PROMETHEUS_RECORDER_HANDLE: Lazy = /// ```rust /// # use reth_tasks::{TaskManager, TaskSpawner}; /// # use reth::{ +/// # builder::NodeConfig, /// # cli::{ -/// # node_builder::NodeConfig, /// # ext::DefaultRethNodeCommandConfig, /// # }, /// # args::RpcServerArgs, @@ -147,8 +147,8 @@ pub static PROMETHEUS_RECORDER_HANDLE: Lazy = /// ```rust /// # use reth_tasks::{TaskManager, TaskSpawner}; /// # use reth::{ +/// # builder::NodeConfig, /// # cli::{ -/// # node_builder::NodeConfig, /// # ext::DefaultRethNodeCommandConfig, /// # }, /// # args::RpcServerArgs, @@ -369,8 +369,8 @@ impl NodeConfig { /// # Example /// ```rust /// # use reth_tasks::{TaskManager, TaskSpawner}; + /// # use reth::builder::NodeConfig; /// # use reth::cli::{ - /// # node_builder::NodeConfig, /// # ext::DefaultRethNodeCommandConfig, /// # }; /// # use tokio::runtime::Handle; @@ -1348,7 +1348,7 @@ impl NodeHandle { /// # Example /// ``` /// # use reth::{ -/// # cli::node_builder::{NodeConfig, spawn_node}, +/// # builder::{NodeConfig, spawn_node}, /// # args::RpcServerArgs, /// # }; /// async fn t() { diff --git a/bin/reth/src/cli/mod.rs b/bin/reth/src/cli/mod.rs index 5eb5788462..8a0b18b1c0 100644 --- a/bin/reth/src/cli/mod.rs +++ b/bin/reth/src/cli/mod.rs @@ -23,7 +23,6 @@ pub mod components; pub mod config; pub mod db_type; pub mod ext; -pub mod node_builder; /// Default [directives](Directive) for [EnvFilter] which disables high-frequency debug logs from /// `hyper` and `trust-dns` diff --git a/bin/reth/src/commands/node/mod.rs b/bin/reth/src/commands/node/mod.rs index 23cfc896a6..23840e5575 100644 --- a/bin/reth/src/commands/node/mod.rs +++ b/bin/reth/src/commands/node/mod.rs @@ -8,7 +8,8 @@ use crate::{ DatabaseArgs, DebugArgs, DevArgs, NetworkArgs, PayloadBuilderArgs, PruningArgs, RpcServerArgs, TxPoolArgs, }, - cli::{db_type::DatabaseBuilder, ext::RethCliExt, node_builder::NodeConfig}, + builder::NodeConfig, + cli::{db_type::DatabaseBuilder, ext::RethCliExt}, dirs::{DataDirPath, MaybePlatformPath}, runner::CliContext, }; diff --git a/bin/reth/src/lib.rs b/bin/reth/src/lib.rs index 62ffb3a4af..3a6e0fce53 100644 --- a/bin/reth/src/lib.rs +++ b/bin/reth/src/lib.rs @@ -29,6 +29,7 @@ #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] pub mod args; +pub mod builder; pub mod cli; pub mod commands; pub mod dirs;