wai
wai copied to clipboard
a wasm interpreter written by rust
wai (WebAssembly interpreter)
A simple wasm interpreter
This is an ongoing project
DEMO
https://user-images.githubusercontent.com/23740172/123530111-d8775280-d731-11eb-9ddf-b4afd640ccdb.mov
Install
Install via Homebrew
brew install k-nasa/tap/wai
Install via Cargo
cargo install --git https://github.com/k-nasa/wai.git wai
Usage
wai examples/add.wasm --invoke add -a 1 2
wai examples/fib.wasm --invoke fib -a 10
:) % wai -h
wai 0.2.0
k-nasa <[email protected]>
A simple wasm interpreter
USAGE:
wai [OPTIONS] <file-path> --invoke <invoke>
ARGS:
<file-path>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a, --args <args>...
-i, --invoke <invoke>
TODO
- [ ] Pass the wasm testsuite
- [ ] Implement validator
- [ ] no_std
- [ ] Support WASI