chore: no-std consensus common (#13686)

This commit is contained in:
Matthias Seitz
2025-01-06 22:53:40 +01:00
committed by GitHub
parent 89a93c5570
commit 6103bd9a6e
5 changed files with 17 additions and 3 deletions

View File

@ -26,3 +26,14 @@ alloy-eips.workspace = true
alloy-consensus.workspace = true
rand.workspace = true
[features]
default = ["std"]
std = [
"alloy-consensus/std",
"alloy-eips/std",
"alloy-primitives/std",
"reth-chainspec/std",
"reth-consensus/std",
"reth-primitives/std",
"reth-primitives-traits/std"
]

View File

@ -7,6 +7,7 @@
)]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)]
/// Collection of consensus validation methods.
pub mod validation;

View File

@ -58,7 +58,8 @@ std = [
"revm-primitives/std",
"revm/std",
"reth-ethereum-forks/std",
"reth-chainspec/std"
"reth-chainspec/std",
"reth-consensus-common/std"
]
test-utils = [
"dep:parking_lot",

View File

@ -73,7 +73,8 @@ std = [
"reth-optimism-forks/std",
"thiserror/std",
"op-alloy-consensus/std",
"reth-chainspec/std"
"reth-chainspec/std",
"reth-consensus-common/std"
]
optimism = [
"reth-primitives/optimism",