diff --git a/Cargo.toml b/Cargo.toml index 63e8d55d..47a5c71f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,10 @@ halo2curves = { version="0.1.0", features = [ "derive_serde" ] } [target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies] pasta-msm = { version = "0.1.4" } +[target.wasm32-unknown-unknown.dependencies] +# see https://github.com/rust-random/rand/pull/948 +getrandom = { version = "0.2.0", default-features = false, features = ["js"]} + [dev-dependencies] criterion = { version = "0.4", features = ["html_reports"] } rand = "0.8.4"