test: make eth-wire tests compile with --all-features (#9340)

This commit is contained in:
Matthias Seitz
2024-07-06 18:50:16 +02:00
committed by GitHub
parent d7f5466433
commit 3d999c3a2a
4 changed files with 9 additions and 2 deletions

1
Cargo.lock generated
View File

@ -7154,6 +7154,7 @@ dependencies = [
name = "reth-eth-wire-types"
version = "1.0.0"
dependencies = [
"alloy-chains",
"alloy-genesis",
"alloy-rlp",
"arbitrary",

View File

@ -17,6 +17,9 @@ reth-chainspec.workspace = true
reth-codecs.workspace = true
reth-codecs-derive.workspace = true
reth-primitives.workspace = true
# ethereum
alloy-chains = { workspace = true, features = ["rlp"] }
alloy-rlp = { workspace = true, features = ["derive"] }
alloy-genesis.workspace = true
@ -32,7 +35,7 @@ proptest-arbitrary-interop = { workspace = true, optional = true }
[dev-dependencies]
reth-primitives = { workspace = true, features = ["arbitrary"] }
alloy-chains = { workspace = true, features = ["arbitrary"] }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-arbitrary-interop.workspace = true
@ -43,6 +46,7 @@ rand.workspace = true
default = ["serde"]
arbitrary = [
"reth-primitives/arbitrary",
"alloy-chains/arbitrary",
"dep:arbitrary",
"dep:proptest",
"dep:proptest-arbitrary-interop",

View File

@ -1,7 +1,8 @@
use crate::EthVersion;
use alloy_chains::{Chain, NamedChain};
use alloy_genesis::Genesis;
use alloy_rlp::{RlpDecodable, RlpEncodable};
use reth_chainspec::{Chain, ChainSpec, NamedChain, MAINNET};
use reth_chainspec::{ChainSpec, MAINNET};
use reth_codecs_derive::derive_arbitrary;
use reth_primitives::{hex, EthereumHardfork, ForkId, Head, B256, U256};
#[cfg(feature = "serde")]

View File

@ -64,6 +64,7 @@ async-stream.workspace = true
default = ["serde"]
arbitrary = [
"reth-primitives/arbitrary",
"reth-eth-wire-types/arbitrary",
"dep:arbitrary",
]
serde = ["dep:serde"]