Skip to content

Commit 6feb9b7

Browse files
committed
Guard js-sys dependency behind target_feature = "atomics"
1 parent e024029 commit 6feb9b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ windows-targets = "0.52"
6565
# wasm_js
6666
[target.'cfg(all(getrandom_backend = "wasm_js", target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies]
6767
wasm-bindgen = { version = "0.2.98", default-features = false }
68+
[target.'cfg(all(getrandom_backend = "wasm_js", target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))'.dependencies]
6869
js-sys = { version = "0.3.75", default-features = false }
6970
[target.'cfg(all(getrandom_backend = "wasm_js", target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dev-dependencies]
7071
wasm-bindgen-test = "0.3"

0 commit comments

Comments
 (0)