Skip to content

Commit a829827

Browse files
committed
fix getrandom
1 parent 7dfb760 commit a829827

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ cfg-if = "1.0"
147147
chrono = "0.4.37"
148148
crossbeam-utils = "0.8.19"
149149
flame = "0.2.2"
150+
getrandom = "0.2.12"
150151
glob = "0.3"
151152
hex = "0.4.3"
152153
indexmap = { version = "2.2.6", features = ["std"] }
@@ -179,6 +180,7 @@ thread_local = "1.1.4"
179180
unicode_names2 = "1.2.0"
180181
widestring = "1.1.0"
181182
windows-sys = "0.52.0"
183+
wasm-bindgen = "0.2.92"
182184

183185
# Lints
184186

vm/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ cfg-if = { workspace = true }
4949
crossbeam-utils = { workspace = true }
5050
chrono = { workspace = true, features = ["wasmbind"] }
5151
flame = { workspace = true, optional = true }
52+
getrandom = { workspace = true }
5253
hex = { workspace = true }
5354
indexmap = { workspace = true }
5455
itertools = { workspace = true }
@@ -72,7 +73,6 @@ thread_local = { workspace = true }
7273
memchr = { workspace = true }
7374

7475
caseless = "0.2.1"
75-
getrandom = { version = "0.2.12", features = ["custom"] }
7676
flamer = { version = "0.4", optional = true }
7777
half = "1.8.2"
7878
memoffset = "0.9.1"
@@ -142,7 +142,8 @@ features = [
142142
]
143143

144144
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
145-
wasm-bindgen = { version = "0.2.92", optional = true }
145+
wasm-bindgen = { workspace = true, optional = true }
146+
getrandom = { workspace = true, features = ["custom"] }
146147

147148
[build-dependencies]
148149
glob = { workspace = true }

wasm/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ rustpython-vm = { workspace = true, features = ["compiler", "encodings", "serde"
2626
rustpython-parser = { workspace = true }
2727

2828
serde = { workspace = true }
29+
wasm-bindgen = { workspace = true }
2930

3031
console_error_panic_hook = "0.1"
3132
js-sys = "0.3"
3233
serde-wasm-bindgen = "0.3.1"
33-
wasm-bindgen = "0.2.80"
3434
wasm-bindgen-futures = "0.4"
3535
web-sys = { version = "0.3", features = [
3636
"console",

wasm/wasm-unknown-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
getrandom = { version = "0.2.7", features = ["custom"] }
10+
getrandom = { version = "0.2.12", features = ["custom"] }
1111
rustpython-vm = { path = "../../vm", default-features = false, features = ["compiler"] }

0 commit comments

Comments
 (0)