Skip to content

Commit

Permalink
fix: kzg-rs include once_cell and derive_more in primitives, update f…
Browse files Browse the repository at this point in the history
…eature tags
  • Loading branch information
0xWOLAND committed Jul 10, 2024
1 parent fcee3f3 commit 1b44f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion crates/primitives/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1b44f90

Please sign in to comment.