mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
test: make eth-wire tests compile with --all-features (#9340)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -7154,6 +7154,7 @@ dependencies = [
|
||||
name = "reth-eth-wire-types"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"alloy-chains",
|
||||
"alloy-genesis",
|
||||
"alloy-rlp",
|
||||
"arbitrary",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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")]
|
||||
|
||||
@ -64,6 +64,7 @@ async-stream.workspace = true
|
||||
default = ["serde"]
|
||||
arbitrary = [
|
||||
"reth-primitives/arbitrary",
|
||||
"reth-eth-wire-types/arbitrary",
|
||||
"dep:arbitrary",
|
||||
]
|
||||
serde = ["dep:serde"]
|
||||
|
||||
Reference in New Issue
Block a user