HTTP Hello World
This is a simple Rust Wasm example that responds with a "Hello World" message for each request.
Prerequisites
cargo
1.82wash
0.36.1wasmtime
>=25.0.0 (if running with wasmtime)
Building
bash
wash build
Running with wasmtime
You must have wasmtime >=25.0.0 for this to work. Make sure to follow the build step above first.
bash
wasmtime serve -Scommon ./build/http_hello_world_s.wasm
Running with wasmCloud
shell
wash dev
shell
curl http://127.0.0.1:8000
Adding Capabilities
To learn how to extend this example with additional capabilities, see the Adding Capabilities section of the wasmCloud documentation.