Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

Commit 27955e6

Browse files
committed
Fix WASM build, remove unused dependencies
1 parent b27a839 commit 27955e6

File tree

4 files changed

+198
-21
lines changed

4 files changed

+198
-21
lines changed

Cargo.lock

+195-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ cfg-if = { workspace = true }
1818
itertools = { workspace = true }
1919
libc = { workspace = true }
2020
num-bigint = { workspace = true }
21-
num-complex = { workspace = true }
2221
num-traits = { workspace = true }
2322
once_cell = { workspace = true }
2423
parking_lot = { workspace = true, optional = true }
@@ -32,5 +31,8 @@ siphasher = "0.3"
3231
unic-ucd-category = "0.9"
3332
volatile = "0.3"
3433

34+
#[target.'cfg(target_arch = "wasm32")'.dependencies]
35+
getrandom = { version = "0.2.9", features = ["js"] }
36+
3537
[target.'cfg(windows)'.dependencies]
3638
widestring = { workspace = true }

compiler/core/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ license = "MIT"
99

1010
[dependencies]
1111
bitflags = { workspace = true }
12-
bstr = { workspace = true }
1312
itertools = { workspace = true }
1413
num-bigint = { workspace = true }
1514
num-complex = { workspace = true }

compiler/parser/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ rustpython-ast = { path = "../ast", version = "0.2.0" }
2323
rustpython-compiler-core = { path = "../core", version = "0.2.0" }
2424
ruff_text_size = { path = "../../ruff_text_size" }
2525

26-
ahash = { workspace = true }
2726
itertools = { workspace = true }
2827
log = { workspace = true }
2928
num-bigint = { workspace = true }

0 commit comments

Comments
 (0)