From 53648ff80ab6d557f8cfd3754f8e4bd209c1f99a Mon Sep 17 00:00:00 2001 From: rakita Date: Mon, 10 Mar 2025 15:28:17 +0100 Subject: [PATCH] fix(precompiles): add portable flag for bls --- crates/precompile/Cargo.toml | 4 +++- crates/revm/Cargo.toml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/precompile/Cargo.toml b/crates/precompile/Cargo.toml index eaa1d4d686..3f3d2c6f55 100644 --- a/crates/precompile/Cargo.toml +++ b/crates/precompile/Cargo.toml @@ -102,7 +102,9 @@ c-kzg = ["dep:c-kzg"] # `kzg-rs` is not audited but useful for `no_std` environment, use it with causing and default to `c-kzg` if possible. kzg-rs = ["dep:kzg-rs"] -portable = ["c-kzg"] +# Compile in portable mode, without ISA extensions. +# Binary can be executed on all systems. +portable = ["c-kzg?/portable", "blst?/portable"] # Use `secp256k1` as a faster alternative to `k256`. # The problem that `secp256k1` has is it fails to build for `wasm` target on Windows and Mac as it is c lib. diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index 5b4d965296..8bb3d90675 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -56,7 +56,6 @@ serde = [ ] arbitrary = ["primitives/arbitrary"] asm-keccak = ["primitives/asm-keccak"] -portable = ["precompile/portable"] # Enables alloydb inside database crate alloydb = ["database/alloydb"] @@ -86,3 +85,7 @@ c-kzg = [ kzg-rs = ["precompile/kzg-rs"] blst = ["precompile/blst"] secp256r1 = ["precompile/secp256r1"] + +# Compile in portable mode, without ISA extensions. +# Binary can be executed on all systems. +portable = ["precompile/portable"]