From 182091d8bdf293a10290bc5f2380e755b907aff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Wed, 5 Jul 2023 16:47:05 -0400 Subject: [PATCH] chore: set up dependencies to import the correct getrandom feature on Wasm --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) 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"