HTTP Hello World
This is a simple Rust Wasm example that responds with a "Hello World" message for each request.
Prerequisites
cargo1.82wash0.36.1wasmtime>=25.0.0 (if running with wasmtime)
Building
bash
wash buildRunning 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.wasmRunning with wasmCloud
shell
wash devshell
curl http://127.0.0.1:8000Adding Capabilities
To learn how to extend this example with additional capabilities, see the Adding Capabilities section of the wasmCloud documentation.