Skip to content

Commit 3379ea2

Browse files
authored
Merge pull request RustPython#3754 from youknowone/cargo
add stdlib to rustpython_wasm and remove threading from vm default
2 parents 21c8e69 + cee4814 commit 3379ea2

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ stdlib = ["rustpython-stdlib"]
2424
flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
2525
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
2626
jit = ["rustpython-vm/jit"]
27-
threading = ["rustpython-vm/threading"]
27+
threading = ["rustpython-vm/threading", "rustpython-stdlib/threading"]
2828
pylib = ["rustpython-vm/pylib"]
2929
zlib = ["stdlib", "rustpython-stdlib/zlib"]
3030
ssl = ["rustpython-stdlib/ssl"]

stdlib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ termios = "0.3.3"
7171
default = ["compile-parse", "pylib"]
7272
pylib = ["rustpython-vm/pylib"]
7373
compile-parse = ["rustpython-vm/compile-parse", "rustpython-parser"]
74-
threading = ["rustpython-vm/threading"]
74+
threading = ["rustpython-common/threading", "rustpython-vm/threading"]
7575
parser = ["rustpython-vm/parser"]
7676
ast = ["rustpython-vm/ast"]
7777
compiler = ["rustpython-vm/compiler"]

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
include = ["src/**/*.rs", "Cargo.toml", "build.rs", "Lib/**/*.py"]
1010

1111
[features]
12-
default = ["compile-parse", "threading", "pylib"]
12+
default = ["compile-parse", "pylib"]
1313
vm-tracing-logging = []
1414
flame-it = ["flame", "flamer"]
1515
pylib = ["rustpython-pylib"]

wasm/lib/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ edition = "2021"
1111
crate-type = ["cdylib", "rlib"]
1212

1313
[features]
14-
default = ["freeze-stdlib"]
14+
default = ["freeze-stdlib", "rustpython-stdlib"]
1515
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
1616
no-start-func = []
1717

1818
[dependencies]
1919
rustpython-parser = { path = "../../parser" }
2020
rustpython-common = { path = "../../common" }
21-
# no threading feature for rustpython-vm -- doesn't much matter anyway, but it might be more optimized
21+
# make sure no threading! otherwise wasm build will fail
2222
rustpython-vm = { path = "../../vm", default-features = false, features = ["compile-parse"] }
23+
rustpython-stdlib = { path = "../../stdlib", default-features = false, features = ["compile-parse"], optional = true }
2324
wasm-bindgen = "0.2"
2425
wasm-bindgen-futures = "0.4"
2526
serde-wasm-bindgen = "0.3.1"

0 commit comments

Comments
 (0)