Skip to content

Commit c683073

Browse files
committed
make work cargo build --target wasm32-unknown-unknown
1 parent 4558be5 commit c683073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ std_rand = ["rand/std_rng", "rand/std"]
4040
js = ["getrandom/js"]
4141

4242
[target.'cfg(target_arch = "wasm32")'.dependencies]
43-
getrandom = { version = "0.2", optional = true }
43+
getrandom = { version = "*", features = ["js"] }
4444

4545
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies]
4646
wasm-bindgen-test = "0.3"

0 commit comments

Comments
 (0)