This lab focuses on deploying a simple Rust web service using hyper with WasmEdge. WasmEdge is a lightweight, high-performance WebAssembly (WASM) runtime, ideal for edge computing and decentralized cloud applications.
All applications that are used throughout the entire course are listed under Installs.
How complete the lab:
- Naviagte to the
hyper-wasi-server
folder:cd hyper-wasi-server
- Build the application in a WASI compatible version format:
cargo build --target wasm32-wasi
- Run the binary using WasmEdge:
wasmedge target/wasm32-wasi/debug/dapr_wasm_02_wasmedge.wasm
- Naviagte to your browser or use the CLI to check that the application is working:
curl http://127.0.0.1:3000/
Done!