Skip to content

Commit 7ebffd0

Browse files
authored
Move dependencies to workspace for wasm crate (RustPython#7794)
* Add dependencies from `wasm` crate to workspace * Declare dependencies as workspace = true
1 parent 5ef91c2 commit 7ebffd0

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ bstr = "1"
188188
bzip2 = "0.6"
189189
caseless = "0.2.2"
190190
chrono = { version = "0.4.44", default-features = false, features = ["clock", "std"] }
191+
console_error_panic_hook = "0.1"
191192
constant_time_eq = "0.4"
192193
cranelift = "0.131.1"
193194
cranelift-jit = "0.131.1"
@@ -216,6 +217,7 @@ indexmap = { version = "2.14.0", features = ["std"] }
216217
insta = "1.47"
217218
itertools = "0.14.0"
218219
is-macro = "0.3.7"
220+
js-sys = "0.3"
219221
junction = "1.4.2"
220222
lexical-parse-float = "1.0.6"
221223
libc = "0.2.186"
@@ -271,6 +273,7 @@ rustyline = "18"
271273
serde = { package = "serde_core", version = "1.0.225", default-features = false, features = ["alloc"] }
272274
schannel = "0.1.29"
273275
scopeguard = "1"
276+
serde-wasm-bindgen = "0.6.5"
274277
sha-1 = "0.10.0"
275278
sha2 = "0.10.2"
276279
sha3 = "0.10.1"
@@ -299,6 +302,8 @@ unicode_names2 = "2.0.0"
299302
widestring = "1.2.0"
300303
windows-sys = "0.61.2"
301304
wasm-bindgen = "0.2.106"
305+
wasm-bindgen-futures = "0.4"
306+
web-sys = "0.3"
302307
webpki-roots = "1.0"
303308
which = "8"
304309
x509-cert = "0.2.5"

crates/wasm/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ rustpython-vm = { workspace = true, features = ["compiler", "encodings", "serde"
2626
serde = { workspace = true }
2727
wasm-bindgen = { workspace = true }
2828

29-
console_error_panic_hook = "0.1"
30-
js-sys = "0.3"
31-
serde-wasm-bindgen = "0.6.5"
32-
wasm-bindgen-futures = "0.4"
33-
web-sys = { version = "0.3", features = [
29+
console_error_panic_hook = { workspace = true }
30+
js-sys = { workspace = true }
31+
serde-wasm-bindgen = { workspace = true }
32+
wasm-bindgen-futures = { workspace = true }
33+
web-sys = { workspace = true, features = [
3434
"console",
3535
"Document",
3636
"Element",

0 commit comments

Comments
 (0)