chore: disable reth-ethereum-forks default features in workspace (#13054)

This commit is contained in:
Matthias Seitz
2024-12-02 12:29:54 +01:00
committed by GitHub
parent 0884611668
commit 8d5668a23a
17 changed files with 75 additions and 53 deletions

1
Cargo.lock generated
View File

@ -7431,6 +7431,7 @@ dependencies = [
"rand 0.8.5", "rand 0.8.5",
"reth-chainspec", "reth-chainspec",
"reth-codecs-derive", "reth-codecs-derive",
"reth-ethereum-forks",
"reth-primitives", "reth-primitives",
"reth-primitives-traits", "reth-primitives-traits",
"serde", "serde",

View File

@ -339,7 +339,7 @@ reth-eth-wire-types = { path = "crates/net/eth-wire-types" }
reth-ethereum-cli = { path = "crates/ethereum/cli" } reth-ethereum-cli = { path = "crates/ethereum/cli" }
reth-ethereum-consensus = { path = "crates/ethereum/consensus" } reth-ethereum-consensus = { path = "crates/ethereum/consensus" }
reth-ethereum-engine-primitives = { path = "crates/ethereum/engine-primitives" } reth-ethereum-engine-primitives = { path = "crates/ethereum/engine-primitives" }
reth-ethereum-forks = { path = "crates/ethereum-forks" } reth-ethereum-forks = { path = "crates/ethereum-forks", default-features = false }
reth-ethereum-payload-builder = { path = "crates/ethereum/payload" } reth-ethereum-payload-builder = { path = "crates/ethereum/payload" }
reth-etl = { path = "crates/etl" } reth-etl = { path = "crates/etl" }
reth-evm = { path = "crates/evm" } reth-evm = { path = "crates/evm" }

View File

@ -48,7 +48,8 @@ std = [
"reth-primitives-traits/std", "reth-primitives-traits/std",
"alloy-consensus/std", "alloy-consensus/std",
"once_cell/std", "once_cell/std",
"alloy-rlp/std" "alloy-rlp/std",
"reth-ethereum-forks/std"
] ]
arbitrary = [ arbitrary = [
"alloy-chains/arbitrary", "alloy-chains/arbitrary",

View File

@ -50,5 +50,6 @@ std = [
"alloy-genesis/std", "alloy-genesis/std",
"alloy-primitives/std", "alloy-primitives/std",
"revm-primitives/std", "revm-primitives/std",
"secp256k1/std" "secp256k1/std",
"reth-ethereum-forks/std"
] ]

View File

@ -46,17 +46,18 @@ metrics-util = { workspace = true, features = ["debugging"] }
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"dep:metrics", "dep:metrics",
"dep:reth-metrics", "dep:reth-metrics",
"reth-consensus/std", "reth-consensus/std",
"reth-primitives/std", "reth-primitives/std",
"reth-primitives-traits/std", "reth-primitives-traits/std",
"reth-revm/std", "reth-revm/std",
"alloy-eips/std", "alloy-eips/std",
"alloy-primitives/std", "alloy-primitives/std",
"alloy-consensus/std", "alloy-consensus/std",
"revm-primitives/std", "revm-primitives/std",
"revm/std", "revm/std",
"reth-ethereum-forks/std"
] ]
test-utils = [ test-utils = [
"dep:parking_lot", "dep:parking_lot",

View File

@ -60,6 +60,7 @@ serde = [
"generic-array/serde", "generic-array/serde",
"parking_lot/serde", "parking_lot/serde",
"rand?/serde", "rand?/serde",
"secp256k1/serde" "secp256k1/serde",
"reth-ethereum-forks/serde"
] ]
test-utils = ["dep:rand"] test-utils = ["dep:rand"]

View File

@ -58,5 +58,6 @@ serde = [
"parking_lot/serde", "parking_lot/serde",
"rand/serde", "rand/serde",
"secp256k1/serde", "secp256k1/serde",
"trust-dns-resolver/serde" "trust-dns-resolver/serde",
"reth-ethereum-forks/serde"
] ]

View File

@ -17,6 +17,7 @@ reth-chainspec.workspace = true
reth-codecs-derive.workspace = true reth-codecs-derive.workspace = true
reth-primitives.workspace = true reth-primitives.workspace = true
reth-primitives-traits.workspace = true reth-primitives-traits.workspace = true
reth-ethereum-forks.workspace = true
# ethereum # ethereum
alloy-chains = { workspace = true, features = ["rlp"] } alloy-chains = { workspace = true, features = ["rlp"] }
@ -46,24 +47,26 @@ rand.workspace = true
[features] [features]
arbitrary = [ arbitrary = [
"reth-primitives/arbitrary", "reth-primitives/arbitrary",
"alloy-chains/arbitrary", "alloy-chains/arbitrary",
"dep:arbitrary", "dep:arbitrary",
"dep:proptest", "dep:proptest",
"dep:proptest-arbitrary-interop", "dep:proptest-arbitrary-interop",
"reth-chainspec/arbitrary", "reth-chainspec/arbitrary",
"alloy-consensus/arbitrary", "alloy-consensus/arbitrary",
"alloy-eips/arbitrary", "alloy-eips/arbitrary",
"alloy-primitives/arbitrary", "alloy-primitives/arbitrary",
"reth-primitives-traits/arbitrary", "reth-primitives-traits/arbitrary",
"reth-ethereum-forks/arbitrary"
] ]
serde = [ serde = [
"dep:serde", "dep:serde",
"alloy-chains/serde", "alloy-chains/serde",
"alloy-consensus/serde", "alloy-consensus/serde",
"alloy-eips/serde", "alloy-eips/serde",
"alloy-primitives/serde", "alloy-primitives/serde",
"bytes/serde", "bytes/serde",
"rand/serde", "rand/serde",
"reth-primitives-traits/serde", "reth-primitives-traits/serde",
"reth-ethereum-forks/serde"
] ]

View File

@ -4,7 +4,7 @@ use alloy_primitives::{hex, B256, U256};
use alloy_rlp::{RlpDecodable, RlpEncodable}; use alloy_rlp::{RlpDecodable, RlpEncodable};
use reth_chainspec::{EthChainSpec, Hardforks, MAINNET}; use reth_chainspec::{EthChainSpec, Hardforks, MAINNET};
use reth_codecs_derive::add_arbitrary_tests; use reth_codecs_derive::add_arbitrary_tests;
use reth_primitives::{EthereumHardfork, ForkId, Head}; use reth_ethereum_forks::{EthereumHardfork, ForkId, Head};
use std::fmt::{Debug, Display}; use std::fmt::{Debug, Display};
/// The status message is used in the eth protocol handshake to ensure that peers are on the same /// The status message is used in the eth protocol handshake to ensure that peers are on the same

View File

@ -89,6 +89,7 @@ serde = [
"reth-codecs/serde", "reth-codecs/serde",
"alloy-chains/serde", "alloy-chains/serde",
"reth-primitives-traits/serde", "reth-primitives-traits/serde",
"reth-ethereum-forks/serde"
] ]
[[test]] [[test]]

View File

@ -45,5 +45,6 @@ serde = [
"reth-eth-wire-types/serde", "reth-eth-wire-types/serde",
"reth-network-types/serde", "reth-network-types/serde",
"alloy-primitives/serde", "alloy-primitives/serde",
"enr/serde" "enr/serde",
"reth-ethereum-forks/serde"
] ]

View File

@ -26,5 +26,9 @@ serde_json = { workspace = true }
tracing.workspace = true tracing.workspace = true
[features] [features]
serde = ["dep:serde", "dep:humantime-serde"] serde = [
"dep:serde",
"dep:humantime-serde",
"reth-ethereum-forks/serde"
]
test-utils = [] test-utils = []

View File

@ -123,6 +123,7 @@ serde = [
"smallvec/serde", "smallvec/serde",
"url/serde", "url/serde",
"reth-primitives-traits/serde", "reth-primitives-traits/serde",
"reth-ethereum-forks/serde"
] ]
test-utils = [ test-utils = [
"dep:reth-provider", "dep:reth-provider",

View File

@ -63,7 +63,8 @@ std = [
"alloy-genesis/std", "alloy-genesis/std",
"alloy-primitives/std", "alloy-primitives/std",
"revm-primitives/std", "revm-primitives/std",
"revm/std" "revm/std",
"reth-ethereum-forks/std"
] ]
optimism = [ optimism = [
"reth-primitives/optimism", "reth-primitives/optimism",

View File

@ -31,10 +31,12 @@ std = [
"alloy-primitives/std", "alloy-primitives/std",
"once_cell/std", "once_cell/std",
"serde?/std", "serde?/std",
"alloy-chains/std" "alloy-chains/std",
"reth-ethereum-forks/std"
] ]
serde = [ serde = [
"dep:serde", "dep:serde",
"alloy-chains/serde", "alloy-chains/serde",
"alloy-primitives/serde" "alloy-primitives/serde",
"reth-ethereum-forks/serde"
] ]

View File

@ -105,7 +105,8 @@ std = [
"serde/std", "serde/std",
"alloy-trie/std", "alloy-trie/std",
"serde_with?/std", "serde_with?/std",
"alloy-rlp/std" "alloy-rlp/std",
"reth-ethereum-forks/std"
] ]
reth-codec = [ reth-codec = [
"dep:reth-codecs", "dep:reth-codecs",

View File

@ -37,12 +37,13 @@ alloy-consensus.workspace = true
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"reth-primitives/std", "reth-primitives/std",
"alloy-primitives/std", "alloy-primitives/std",
"revm/std", "revm/std",
"alloy-eips/std", "alloy-eips/std",
"alloy-consensus/std", "alloy-consensus/std",
"reth-primitives-traits/std", "reth-primitives-traits/std",
"reth-ethereum-forks/std"
] ]
witness = ["dep:reth-trie"] witness = ["dep:reth-trie"]
test-utils = [ test-utils = [
@ -54,10 +55,11 @@ test-utils = [
"reth-primitives-traits/test-utils", "reth-primitives-traits/test-utils",
] ]
serde = [ serde = [
"revm/serde", "revm/serde",
"alloy-eips/serde", "alloy-eips/serde",
"alloy-primitives/serde", "alloy-primitives/serde",
"alloy-consensus/serde", "alloy-consensus/serde",
"reth-primitives-traits/serde", "reth-primitives-traits/serde",
"reth-trie?/serde", "reth-trie?/serde",
"reth-ethereum-forks/serde"
] ]