Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 600 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 600 Bytes

hello-wasi-http

https://opensource.microsoft.com/blog/2024/09/25/distributing-webassembly-components-using-oci-registries/

cargo component build --release
mv target/wasm32-wasip1/release/hello_wasi_http.wasm ./hello_wasi_http.wasm
wasmtime serve hello_wasi_http.wasm
curl 127.0.0.1:8080
wkg oci push ghcr.io/z63d/hello-wasi-http:latest hello_wasi_http.wasm
regctl manifest get ghcr.io/z63d/hello-wasi-http:latest
wkg oci pull ghcr.io/z63d/hello-wasi-http:latest -o app.wasm
wasmtime serve app.wasm --addr 127.0.0.1:3000