Files
RustPython/example_projects/wasm32_without_js/README.md
Jeong YunWon eac8968f84 Add wasm runtime and fix the example code to actually run
Co-Authored-By: Valentyn Faychuk <valy@faychuk.com>
Co-Authored-By: Lee Dogeon <dev.moreal@gmail.com>
2025-11-17 21:30:28 +09:00

514 B

RustPython wasm32 build without JS

To test, build rustpython to wasm32-unknown-unknown target first.

cd rustpython-without-js  # due to `.cargo/config.toml`
cargo build
cd ..

Then there will be rustpython-without-js/target/wasm32-unknown-unknown/debug/rustpython_without_js.wasm file.

Now we can run the wasm file with wasm runtime:

cargo run --release --manifest-path wasm-runtime/Cargo.toml rustpython-without-js/target/wasm32-unknown-unknown/debug/rustpython_without_js.wasm