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

View File

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

View File

@ -58,5 +58,6 @@ serde = [
"parking_lot/serde",
"rand/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-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-ethereum-forks.workspace = true
# ethereum
alloy-chains = { workspace = true, features = ["rlp"] }
@ -46,24 +47,26 @@ rand.workspace = true
[features]
arbitrary = [
"reth-primitives/arbitrary",
"alloy-chains/arbitrary",
"dep:arbitrary",
"dep:proptest",
"dep:proptest-arbitrary-interop",
"reth-chainspec/arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/arbitrary",
"reth-primitives-traits/arbitrary",
"reth-primitives/arbitrary",
"alloy-chains/arbitrary",
"dep:arbitrary",
"dep:proptest",
"dep:proptest-arbitrary-interop",
"reth-chainspec/arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/arbitrary",
"reth-primitives-traits/arbitrary",
"reth-ethereum-forks/arbitrary"
]
serde = [
"dep:serde",
"alloy-chains/serde",
"alloy-consensus/serde",
"alloy-eips/serde",
"alloy-primitives/serde",
"bytes/serde",
"rand/serde",
"reth-primitives-traits/serde",
"dep:serde",
"alloy-chains/serde",
"alloy-consensus/serde",
"alloy-eips/serde",
"alloy-primitives/serde",
"bytes/serde",
"rand/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 reth_chainspec::{EthChainSpec, Hardforks, MAINNET};
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};
/// 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",
"alloy-chains/serde",
"reth-primitives-traits/serde",
"reth-ethereum-forks/serde"
]
[[test]]

View File

@ -45,5 +45,6 @@ serde = [
"reth-eth-wire-types/serde",
"reth-network-types/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
[features]
serde = ["dep:serde", "dep:humantime-serde"]
serde = [
"dep:serde",
"dep:humantime-serde",
"reth-ethereum-forks/serde"
]
test-utils = []

View File

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