Reexport optimism specific crates from op-reth (#11499)

This commit is contained in:
Eric Woolsey
2024-10-05 02:07:14 -07:00
committed by GitHub
parent 72865f1d83
commit 08c4065482
4 changed files with 85 additions and 1 deletions

6
Cargo.lock generated
View File

@ -5257,8 +5257,14 @@ dependencies = [
"clap", "clap",
"reth-cli-util", "reth-cli-util",
"reth-node-builder", "reth-node-builder",
"reth-optimism-chainspec",
"reth-optimism-cli", "reth-optimism-cli",
"reth-optimism-consensus",
"reth-optimism-evm",
"reth-optimism-forks",
"reth-optimism-node", "reth-optimism-node",
"reth-optimism-payload-builder",
"reth-optimism-primitives",
"reth-optimism-rpc", "reth-optimism-rpc",
"reth-provider", "reth-provider",
"tracing", "tracing",

View File

@ -15,6 +15,12 @@ reth-optimism-cli.workspace = true
reth-provider.workspace = true reth-provider.workspace = true
reth-optimism-rpc.workspace = true reth-optimism-rpc.workspace = true
reth-optimism-node.workspace = true reth-optimism-node.workspace = true
reth-optimism-chainspec.workspace = true
reth-optimism-consensus.workspace = true
reth-optimism-evm.workspace = true
reth-optimism-payload-builder.workspace = true
reth-optimism-primitives.workspace = true
reth-optimism-forks.workspace = true
clap = { workspace = true, features = ["derive", "env"] } clap = { workspace = true, features = ["derive", "env"] }
tracing.workspace = true tracing.workspace = true

View File

@ -0,0 +1,73 @@
//! Rust Optimism (op-reth) binary executable.
//!
//! ## Feature Flags
//!
//! - `jemalloc`: Uses [jemallocator](https://github.com/tikv/jemallocator) as the global allocator.
//! This is **not recommended on Windows**. See [here](https://rust-lang.github.io/rfcs/1974-global-allocators.html#jemalloc)
//! for more info.
//! - `jemalloc-prof`: Enables [jemallocator's](https://github.com/tikv/jemallocator) heap profiling
//! and leak detection functionality. See [jemalloc's opt.prof](https://jemalloc.net/jemalloc.3.html#opt.prof)
//! documentation for usage details. This is **not recommended on Windows**. See [here](https://rust-lang.github.io/rfcs/1974-global-allocators.html#jemalloc)
//! for more info.
//! - `asm-keccak`: replaces the default, pure-Rust implementation of Keccak256 with one implemented
//! in assembly; see [the `keccak-asm` crate](https://github.com/DaniPopes/keccak-asm) for more
//! details and supported targets
//! - `min-error-logs`: Disables all logs below `error` level.
//! - `min-warn-logs`: Disables all logs below `warn` level.
//! - `min-info-logs`: Disables all logs below `info` level. This can speed up the node, since fewer
//! calls to the logging component is made.
//! - `min-debug-logs`: Disables all logs below `debug` level.
//! - `min-trace-logs`: Disables all logs below `trace` level.
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
// The `optimism` feature must be enabled to use this crate.
#![cfg(feature = "optimism")]
/// Re-exported from `reth_optimism_cli`.
pub mod cli {
pub use reth_optimism_cli::*;
}
/// Re-exported from `reth_optimism_chainspec`.
pub mod chainspec {
pub use reth_optimism_chainspec::*;
}
/// Re-exported from `reth_optimism_consensus`.
pub mod consensus {
pub use reth_optimism_consensus::*;
}
/// Re-exported from `reth_optimism_evm`.
pub mod evm {
pub use reth_optimism_evm::*;
}
/// Re-exported from `reth_optimism_forks`.
pub mod forks {
pub use reth_optimism_forks::*;
}
/// Re-exported from `reth_optimism_node`.
pub mod node {
pub use reth_optimism_node::*;
}
/// Re-exported from `reth_optimism_payload_builder`.
pub mod payload {
pub use reth_optimism_payload_builder::*;
}
/// Re-exported from `reth_optimism_primitives`.
pub mod primitives {
pub use reth_optimism_primitives::*;
}
/// Re-exported from `reth_optimism_rpc`.
pub mod rpc {
pub use reth_optimism_rpc::*;
}

View File

@ -1,7 +1,6 @@
#![allow(missing_docs, rustdoc::missing_crate_level_docs)] #![allow(missing_docs, rustdoc::missing_crate_level_docs)]
// The `optimism` feature must be enabled to use this crate. // The `optimism` feature must be enabled to use this crate.
#![cfg(feature = "optimism")] #![cfg(feature = "optimism")]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use clap::Parser; use clap::Parser;
use reth_node_builder::{engine_tree_config::TreeConfig, EngineNodeLauncher}; use reth_node_builder::{engine_tree_config::TreeConfig, EngineNodeLauncher};