diff --git a/crates/solidity/Cargo.toml b/crates/solidity/Cargo.toml index c4fb5b1..790cf51 100644 --- a/crates/solidity/Cargo.toml +++ b/crates/solidity/Cargo.toml @@ -49,9 +49,10 @@ libc = { workspace = true } inkwell = { workspace = true, features = ["target-riscv", "llvm18-0-no-llvm-linking"]} [features] -default = ["parallel"] +default = [] parallel = ["rayon"] #TODO: Use pthreads -C target-feature=+atomics,+bulk-memory -Clink-arg=-pthread in compilation and enable `parallel` feature -[target.'cfg(target_os = "emscripten")'.features] -default = [] +# Enable parallel_native by default only for non-emscripten targets +[target.'cfg(not(target_os = "emscripten"))'.features] +default = ["parallel_native"]