Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 651 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 651 Bytes

WASI standalone app

In this example, we demonstrate how to run a standalone WASM application from the command line.

Prerequisites

Install Rust

Install WasmEdge by downloading and extracting the wasmedge binary executable file from project release package.

Build the WASM bytecode

$ rustup target add wasm32-wasi
$ cargo build --target wasm32-wasi

Run the application from command line

We will use the wasmedge command to run the program.

$ wasmedge target/wasm32-wasi/debug/hello.wasm second state
hello
second
state