Skip to content

Commit 2e36ff8

Browse files
committed
rustpython-common/wasm_js
1 parent 5cbb152 commit 2e36ff8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

common/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ license.workspace = true
1010

1111
[features]
1212
threading = ["parking_lot"]
13+
wasm_js = ["getrandom/wasm_js"]
1314

1415
[dependencies]
1516
rustpython-literal = { workspace = true }
@@ -36,9 +37,6 @@ lock_api = "0.4"
3637
siphasher = "1"
3738
num-complex.workspace = true
3839

39-
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
40-
getrandom = { workspace = true, features = ["wasm_js"] }
41-
4240
[target.'cfg(windows)'.dependencies]
4341
widestring = { workspace = true }
4442
windows-sys = { workspace = true, features = [

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ast = ["ruff_python_ast", "ruff_text_size"]
2424
codegen = ["rustpython-codegen", "ast"]
2525
parser = ["ast"]
2626
serde = ["dep:serde"]
27-
wasmbind = ["chrono/wasmbind", "getrandom/wasm_js", "wasm-bindgen"]
27+
wasmbind = ["rustpython-common/wasm_js", "chrono/wasmbind", "wasm-bindgen"]
2828

2929
[dependencies]
3030
rustpython-compiler = { workspace = true, optional = true }

0 commit comments

Comments
 (0)