Add document for wasi

This commit is contained in:
Jeong Yunwon authored and Jeong YunWon committed 2022-05-08 15:24:58 +09:00
1 parent 996250d959
commit 39e3f8faff
1 file changed
+11
+11
View File
@@ -74,6 +74,17 @@ this isn't officially supported and may be out of date:
You can compile RustPython to a standalone WebAssembly WASI module so it can run anywhere.
Build
```shell
$ cargo build --target wasm32-wasi --no-default-features --features freeze-stdlib,stdlib --release
```
Run by wasmer
```shell
$ wasmer run --dir . target/wasm32-wasi/release/rustpython.wasm extra_tests/snippets/stdlib_random.py
```
Run by wapm
```shell
$ wapm install rustpython
$ wapm run rustpython