Skip to content

Latest commit

 

History

History

hello

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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