Cargo Features

[dependencies]
rustpython_wasm = { version = "0.3.0", default-features = false, features = ["freeze-stdlib", "no-start-func"] }
default = freeze-stdlib

The freeze-stdlib feature is set by default whenever rustpython_wasm is added without default-features = false somewhere in the dependency tree.

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.

rustpython-pylib freeze-stdlib
rustpython-stdlib freeze-stdlib