diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index cbd2ce5ec74..714c4477cff 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -70,6 +70,7 @@ tempfile = { version = "3.3", optional = true } # reth reth-discv4 = { path = "../discv4", features = ["test-utils"] } reth-interfaces = { workspace = true, features = ["test-utils"] } +reth-primitives = { workspace = true, features = ["test-utils"] } # we need to enable the test-utils feature in our own crate to use utils in # integration tests diff --git a/crates/primitives/src/genesis.rs b/crates/primitives/src/genesis.rs index 97aa9baf0cc..e4b435956d5 100644 --- a/crates/primitives/src/genesis.rs +++ b/crates/primitives/src/genesis.rs @@ -431,6 +431,7 @@ pub struct CliqueConfig { pub epoch: Option, } +#[cfg(feature = "test-utils")] mod ethers_compat { use super::*; use ethers_core::utils::{ diff --git a/crates/primitives/src/header.rs b/crates/primitives/src/header.rs index d02d26c07fe..0235ba8bb98 100644 --- a/crates/primitives/src/header.rs +++ b/crates/primitives/src/header.rs @@ -672,6 +672,7 @@ impl From for bool { } } +#[cfg(feature = "test-utils")] mod ethers_compat { use super::*; use ethers_core::types::{Block, H256 as EthersH256};