wai (WebAssembly interpreter)
A simple wasm interpreter
This is an ongoing project
DEMO
2021-06-27.10.23.18.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