From b178631bc17708ebc85043dfef99adac473c6211 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 1 Feb 2023 13:33:54 +0100 Subject: [PATCH] chore: rm unused crate (#1114) --- Cargo.lock | 11 ----------- bin/reth/Cargo.toml | 2 +- crates/consensus/Cargo.toml | 16 ---------------- crates/consensus/src/lib.rs | 6 +----- 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c267637eb..d426375c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4044,21 +4044,10 @@ dependencies = [ name = "reth-consensus" version = "0.1.0" dependencies = [ - "assert_matches", - "async-trait", - "auto_impl 1.0.1", - "bytes", - "futures", - "reth-executor", "reth-interfaces", "reth-primitives", "reth-provider", - "reth-rlp", - "reth-rpc-types", - "serde", - "thiserror", "tokio", - "tokio-stream", ] [[package]] diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index b28f441c7..aeb374783 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -16,7 +16,7 @@ reth-staged-sync = { path = "../../crates/staged-sync" } reth-stages = { path = "../../crates/stages"} reth-interfaces = { path = "../../crates/interfaces", features = ["test-utils"] } reth-transaction-pool = { path = "../../crates/transaction-pool" } -reth-consensus = { path = "../../crates/consensus", features = ["serde"] } +reth-consensus = { path = "../../crates/consensus" } reth-executor = { path = "../../crates/executor" } # reth-rpc = {path = "../../crates/net/rpc"} reth-rlp = { path = "../../crates/common/rlp" } diff --git a/crates/consensus/Cargo.toml b/crates/consensus/Cargo.toml index d988a39e2..769bd7332 100644 --- a/crates/consensus/Cargo.toml +++ b/crates/consensus/Cargo.toml @@ -11,26 +11,10 @@ readme = "README.md" reth-primitives = { path = "../primitives" } reth-interfaces = { path = "../interfaces" } reth-provider = { path = "../storage/provider" } -reth-rlp = { path = "../common/rlp" } -reth-rpc-types = { path = "../net/rpc-types" } -reth-executor = { path = "../executor" } # async -futures = "0.3" -async-trait = "0.1.57" tokio = { version = "1", features = ["sync"] } -tokio-stream = "0.1" - -# misc -thiserror = "1.0.37" -auto_impl = "1.0" -serde = { version = "1.0", optional = true } [dev-dependencies] reth-interfaces = { path = "../interfaces", features = ["test-utils"] } reth-provider = { path = "../storage/provider", features = ["test-utils"] } -assert_matches = "1.5.0" -bytes = "1.2" - -[features] -serde = ["dep:serde"] diff --git a/crates/consensus/src/lib.rs b/crates/consensus/src/lib.rs index f3fbc64ca..35bf33b03 100644 --- a/crates/consensus/src/lib.rs +++ b/crates/consensus/src/lib.rs @@ -1,14 +1,10 @@ -#![warn(missing_docs, unreachable_pub)] +#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)] #![deny(unused_must_use, rust_2018_idioms)] #![doc(test( no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) ))] //! Consensus algorithms for Ethereum. -//! -//! # Features -//! -//! - `serde`: Enable serde support for configuration types. /// Beacon consensus implementation. pub mod beacon;