diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 28780940c0..bf558952f6 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -111,3 +111,4 @@ rand = ["alloy-primitives/rand"] # See comments in `revm-precompile` c-kzg = ["dep:c-kzg", "dep:once_cell", "dep:derive_more"] +kzg-rs = ["dep:kzg-rs", "dep:once_cell", "dep:derive_more"] diff --git a/crates/primitives/src/env.rs b/crates/primitives/src/env.rs index 1ec9c717f8..45cfb119c5 100644 --- a/crates/primitives/src/env.rs +++ b/crates/primitives/src/env.rs @@ -275,7 +275,7 @@ pub struct CfgEnv { /// Chain ID is introduced EIP-155 pub chain_id: u64, /// KZG Settings for point evaluation precompile. By default, this is loaded from the ethereum mainnet trusted setup. - #[cfg(feature = "c-kzg")] + #[cfg(any(feature = "c-kzg", feature = "kzg-rs"))] #[cfg_attr(feature = "serde", serde(skip))] pub kzg_settings: crate::kzg::EnvKzgSettings, /// Bytecode that is created with CREATE/CREATE2 is by default analysed and jumptable is created.