mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
add stdlib to rustpython_wasm and remove threading from vm default
This commit is contained in:
1 parent
8ab4e77035
commit
cee4814074
5 files changed
+7
-5
No files matched your search
Generated
+1
@@ -1847,6 +1847,7 @@ dependencies = [
|
||||
"parking_lot",
|
||||
"rustpython-common",
|
||||
"rustpython-parser",
|
||||
"rustpython-stdlib",
|
||||
"rustpython-vm",
|
||||
"serde",
|
||||
"serde-wasm-bindgen",
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ stdlib = ["rustpython-stdlib"]
|
||||
flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
|
||||
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
|
||||
jit = ["rustpython-vm/jit"]
|
||||
threading = ["rustpython-vm/threading"]
|
||||
threading = ["rustpython-vm/threading", "rustpython-stdlib/threading"]
|
||||
pylib = ["rustpython-vm/pylib"]
|
||||
zlib = ["stdlib", "rustpython-stdlib/zlib"]
|
||||
ssl = ["rustpython-stdlib/ssl"]
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ termios = "0.3.3"
|
||||
default = ["compile-parse", "pylib"]
|
||||
pylib = ["rustpython-vm/pylib"]
|
||||
compile-parse = ["rustpython-vm/compile-parse", "rustpython-parser"]
|
||||
threading = ["rustpython-vm/threading"]
|
||||
threading = ["rustpython-common/threading", "rustpython-vm/threading"]
|
||||
parser = ["rustpython-vm/parser"]
|
||||
ast = ["rustpython-vm/ast"]
|
||||
compiler = ["rustpython-vm/compiler"]
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ edition = "2021"
|
||||
include = ["src/**/*.rs", "Cargo.toml", "build.rs", "Lib/**/*.py"]
|
||||
|
||||
[features]
|
||||
default = ["compile-parse", "threading", "pylib"]
|
||||
default = ["compile-parse", "pylib"]
|
||||
vm-tracing-logging = []
|
||||
flame-it = ["flame", "flamer"]
|
||||
pylib = ["rustpython-pylib"]
|
||||
|
||||
+3
-2
@@ -11,15 +11,16 @@ edition = "2021"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[features]
|
||||
default = ["freeze-stdlib"]
|
||||
default = ["freeze-stdlib", "rustpython-stdlib"]
|
||||
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
|
||||
no-start-func = []
|
||||
|
||||
[dependencies]
|
||||
rustpython-parser = { path = "../../parser" }
|
||||
rustpython-common = { path = "../../common" }
|
||||
# no threading feature for rustpython-vm -- doesn't much matter anyway, but it might be more optimized
|
||||
# make sure no threading! otherwise wasm build will fail
|
||||
rustpython-vm = { path = "../../vm", default-features = false, features = ["compile-parse"] }
|
||||
rustpython-stdlib = { path = "../../stdlib", default-features = false, features = ["compile-parse"], optional = true }
|
||||
wasm-bindgen = "0.2"
|
||||
wasm-bindgen-futures = "0.4"
|
||||
serde-wasm-bindgen = "0.3.1"
|
||||
|
||||
Reference in new issue
Block a user