mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: no-std consensus common (#13686)
This commit is contained in:
@ -318,7 +318,7 @@ reth-codecs = { path = "crates/storage/codecs" }
|
||||
reth-codecs-derive = { path = "crates/storage/codecs/derive" }
|
||||
reth-config = { path = "crates/config" }
|
||||
reth-consensus = { path = "crates/consensus/consensus", default-features = false }
|
||||
reth-consensus-common = { path = "crates/consensus/common" }
|
||||
reth-consensus-common = { path = "crates/consensus/common", default-features = false }
|
||||
reth-consensus-debug-client = { path = "crates/consensus/debug-client" }
|
||||
reth-db = { path = "crates/storage/db", default-features = false }
|
||||
reth-db-api = { path = "crates/storage/db-api" }
|
||||
|
||||
@ -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"
|
||||
]
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user