Commit 5f1f239d authored by janimo's avatar janimo
Browse files

Enable js feature for getrandom for WASM.

By default rand does not build for WASM browser targets.
parent 4df5596a
......@@ -23,3 +23,6 @@ thiserror = "1.0.24"
[dev-dependencies]
hex-literal = "0.3.1"
[target.wasm32-unknown-unknown.dependencies]
getrandom = { version = "0.2.3", features = ["js"] }
......@@ -45,3 +45,7 @@ serde_test = "1.0.124"
version = "1.5.0"
features = ["precommit-hook", "run-cargo-test",
"run-cargo-fmt", "run-for-all" ]
[target.wasm32-unknown-unknown.dependencies]
getrandom = { version = "0.2.3", features = ["js"] }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment