Skip to content

Commit

Permalink
fix(precompiles): add portable flag for bls (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Mar 10, 2025
1 parent 7528ab4 commit 15887c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ serde = [
]
arbitrary = ["primitives/arbitrary"]
asm-keccak = ["primitives/asm-keccak"]
portable = ["precompile/portable"]

# Enables alloydb inside database crate
alloydb = ["database/alloydb"]
Expand Down Expand Up @@ -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"]

0 comments on commit 15887c0

Please sign in to comment.