rustpython-common wasm_js feature (#6116)

This commit is contained in:
Jeong, YunWon
2025-09-17 09:11:13 +09:00
committed by GitHub
parent 141ed72693
commit aa0eb4bedf
4 changed files with 5 additions and 4 deletions

View File

@@ -3,3 +3,6 @@ rustflags = "-C link-arg=/STACK:8000000"
[target.'cfg(all(target_os = "windows", not(target_env = "msvc")))']
rustflags = "-C link-args=-Wl,--stack,8000000"
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=getrandom_backend=\"wasm_js\""]

View File

@@ -10,6 +10,7 @@ license.workspace = true
[features]
threading = ["parking_lot"]
wasm_js = ["getrandom/wasm_js"]
[dependencies]
rustpython-literal = { workspace = true }

View File

@@ -24,7 +24,7 @@ ast = ["ruff_python_ast", "ruff_text_size"]
codegen = ["rustpython-codegen", "ast"]
parser = ["ast"]
serde = ["dep:serde"]
wasmbind = ["chrono/wasmbind", "getrandom/wasm_js", "wasm-bindgen"]
wasmbind = ["rustpython-common/wasm_js", "chrono/wasmbind", "wasm-bindgen"]
[dependencies]
rustpython-compiler = { workspace = true, optional = true }

View File

@@ -1,5 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=getrandom_backend=\"wasm_js\""]