wagi
wagi copied to clipboard
Write HTTP handlers in WebAssembly with a minimal amount of work
Be great to set this project up so it can be installed with ease via: ``` cargo install wagi ```
Signed-off-by: Li Yi Fix #182 Tested in Mac/Linux ``` $ cargo run -- -c examples/modules.toml Finished dev [unoptimized + debuginfo] target(s) in 1.03s Running `target/debug/wagi -c examples/modules.toml` No log_dir specified,...
In ```src/wasm_runner.rs``` the prepare_wasm_instance() will create and instantiated linker for every request, it will consume about 80% CPU time during stress testing. ``` pub fn prepare_wasm_instance( ctx: WasiCtx, wasm_module: &WasmModuleSource,...
Currently, WAGI only support SIGINT/Ctrl - C. It doesn't works well in containers, e.g. Docker or Kubernetes. I suggest to support SIGTERM in wagi_server.rs
- [ ] Update Wagi to wasmtime 0.35 - [ ] Update `wasm_runner` to use the new wasi-experimental-http context
When loading a wasm GoLang module (build with TinyGo), I get this error: ``` Error: failed to parse WebAssembly module Caused by: Invalid input WebAssembly code at offset 294: duplicate...
Backports fix of https://github.com/fermyon/spin/issues/321 to WAGI.