Cargo Features
[dependencies]
rustpython_wasm = { version = "0.4.0", default-features = false, features = ["freeze-stdlib", "no-start-func"] }
- default = freeze-stdlib
-
The
freeze-stdlib
feature is set by default wheneverrustpython_wasm
is added without
somewhere in the dependency tree.default-features = false - freeze-stdlib default = rustpython-stdlib
-
Enables freeze-stdlib of rustpython-pylib and rustpython-vm
rustpython-vm:
make sure no threading! otherwise wasm build will fail
- no-start-func
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.