A FaaS service tool based on WebAssembly, provides a simple way to write web service.
- Clone And Install
git clone https://github.com/ChenKS12138/wasm-lambda.git
cd wasm-lambda
cargo install --path .- Build Example
hello-world
cd examples/hello-world
cargo build- Dev And Auto-reload
# Start Dev Server
wasm-lambda dev --bind 0.0.0.0:3000 -m hello-world:./target/wasm32-wasi/debug/hello-world.wasm
# Rebuild
# cargo build- Send Request
Open Browser, visit http://127.0.0.1:3000/hello-world/latest/
OR
curl -iL http://127.0.0.1:3000/hello-world/latest/
curl -i http://127.0.0.1:3000/hello-world/latest/api/capitalize/hello-world
curl -i http://127.0.0.1:3000/hello-world/latest/api/echo-query?name=cattchen&age=21
curl -i -X POST -d '{"name":"cattchen","age":21}' http://127.0.0.1:3000/hello-world/latest/api/echo-person