In this example, we demonstrate how to run a standalone WASM application from the command line.
Install WasmEdge by downloading and extracting the wasmedge
binary executable file from project release package.
$ rustup target add wasm32-wasi
$ cargo build --target wasm32-wasi
We will use the wasmedge
command to run the program.
$ wasmedge target/wasm32-wasi/debug/hello.wasm second state
hello
second
state