chore: move BeaconConsensus to its own crate (#5937)

This commit is contained in:
Matthias Seitz
2024-01-04 13:40:53 +01:00
committed by GitHub
parent ae4d487305
commit 17b75dd403
6 changed files with 53 additions and 8 deletions

View File

@ -0,0 +1,14 @@
[package]
name = "reth-beacon-consensus-core"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
# reth
reth-consensus-common.workspace = true
reth-primitives.workspace = true
reth-interfaces.workspace = true

View File

@ -1,3 +1,20 @@
//! Beacon consensus implementation.
#![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/"
)]
#![warn(
missing_debug_implementations,
missing_docs,
unused_crate_dependencies,
unreachable_pub,
rustdoc::all
)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
//! Consensus for ethereum network
use reth_consensus_common::validation;

View File

@ -9,7 +9,7 @@ repository.workspace = true
[dependencies]
# reth
reth-consensus-common.workspace = true
reth-beacon-consensus-core.workspace = true
reth-primitives.workspace = true
reth-interfaces.workspace = true
reth-stages.workspace = true
@ -21,7 +21,6 @@ reth-payload-builder.workspace = true
reth-payload-validator.workspace = true
reth-prune.workspace = true
reth-snapshot.workspace = true
reth-rpc-types-compat.workspace = true
reth-tokio-util.workspace = true
# async
@ -47,6 +46,7 @@ reth-stages = { workspace = true, features = ["test-utils"] }
reth-blockchain-tree = { workspace = true, features = ["test-utils"] }
reth-db = { workspace = true, features = ["test-utils"] }
reth-provider = { workspace = true, features = ["test-utils"] }
reth-rpc-types-compat.workspace = true
reth-tracing.workspace = true
reth-revm.workspace = true
reth-downloaders.workspace = true
@ -55,12 +55,10 @@ assert_matches.workspace = true
[features]
optimism = [
"reth-consensus-common/optimism",
"reth-primitives/optimism",
"reth-interfaces/optimism",
"reth-provider/optimism",
"reth-rpc-types/optimism",
"reth-rpc-types-compat/optimism",
"reth-payload-builder/optimism",
"reth-blockchain-tree/optimism",
]

View File

@ -5,12 +5,17 @@
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
)]
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
#![warn(
missing_debug_implementations,
missing_docs,
unused_crate_dependencies,
unreachable_pub,
rustdoc::all
)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod beacon_consensus;
pub use beacon_consensus::BeaconConsensus;
pub use reth_beacon_consensus_core::BeaconConsensus;
mod engine;
pub use engine::*;