Skip to content

Commit

Permalink
chore: set up dependencies to import the correct getrandom feature on…
Browse files Browse the repository at this point in the history
… Wasm
  • Loading branch information
huitseeker committed Jul 5, 2023
1 parent 947763f commit 182091d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 182091d

Please sign in to comment.