Skip to main content

reth_node_core/
lib.rs

1//! The core of the Ethereum node. Collection of utilities and libraries that are used by the node.
2
3#![doc(
4    html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
5    html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
6    issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
7)]
8#![cfg_attr(not(test), warn(unused_crate_dependencies))]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10
11// Used via Cargo features to enforce compile-time max-level filtering alongside tracing.
12use log as _;
13
14pub mod args;
15pub mod cli;
16pub mod dirs;
17pub mod exit;
18pub mod node_config;
19pub mod utils;
20pub mod version;
21
22/// Re-exported primitive types
23pub mod primitives {
24    pub use reth_ethereum_forks::*;
25    pub use reth_primitives_traits::*;
26}
27
28/// Re-export of `reth_rpc_*` crates.
29pub mod rpc {
30    /// Re-exported from `reth_rpc_server_types::result`.
31    pub mod result {
32        pub use reth_rpc_server_types::result::*;
33    }
34
35    /// Re-exported from `reth_rpc_convert`.
36    pub mod compat {
37        pub use reth_rpc_convert::*;
38    }
39}