Files
Jeong, YunWon 93099e35e7 Remove PyStr::as_str, use as_wtf8/PyUtf8Str instead (#7218)
- Remove as_str() from PyStr/Py<PyStr> (was panicking on surrogates)
- Add Wtf8Concat trait and concat! macro for WTF-8 formatting
- Add impl From<&str> for &Wtf8 conversion
- Add AsPyStr/DictKey impls for PyUtf8Str types
- Migrate all call sites to as_wtf8(), to_str(), or PyUtf8Str
- Fix exception message APIs to accept Wtf8Buf
- Deduplicate inner-scope imports across modules
2026-02-27 04:20:11 +09:00
..

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