WAGI (Web Assembly Gateway Interface) is an adaptation of CGI for WebAssembly WASI modules.
This repo contains a Rust implementation of a simple "Hello World" WAGI server.
You can test the output of this command using cargo run.
However, when building it for WAGI, you need to compile this as Web Assembly with WASI support:
$ cargo build --target wasm32-wasi --release
(We recommend using --release because it considerably reduces the size.)
If you use make, you can make build instead of typing in the cargo command above.
The resulting binary will be written to target/wasm32-wasi/release/hello_wagi.wasm.
WAGI is a simple web server for Wasm.
This module can be executed from within WAGI. See the example-wagi.toml file to see how.