Skip to content

Commit 39e3f8f

Browse files
committed
Add document for wasi
1 parent 996250d commit 39e3f8f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ this isn't officially supported and may be out of date:
7474

7575
You can compile RustPython to a standalone WebAssembly WASI module so it can run anywhere.
7676

77+
Build
78+
```shell
79+
$ cargo build --target wasm32-wasi --no-default-features --features freeze-stdlib,stdlib --release
80+
```
81+
82+
Run by wasmer
83+
```shell
84+
$ wasmer run --dir . target/wasm32-wasi/release/rustpython.wasm extra_tests/snippets/stdlib_random.py
85+
```
86+
87+
Run by wapm
7788
```shell
7889
$ wapm install rustpython
7990
$ wapm run rustpython

0 commit comments

Comments
 (0)