kube32-sdk
no_std Rust bindings for the kube32 WebAssembly pod ABI. kube32 runs pods as WebAssembly modules on ESP32-S3 boards and in the kube32-sim host simulator, managed with kubectl.
A request-handling pod is a function and one macro invocation:
use ;
kube32_app!
Add the SDK to a library crate whose Cargo.toml sets crate-type = ["cdylib"] under [lib], then build it for wasm32-unknown-unknown with one 64 KiB page of linear memory and a 16 KiB shadow stack:
RUSTFLAGS="-C link-arg=-zstack-size=16384 -C link-arg=--initial-memory=65536 -C link-arg=--max-memory=65536" \
Features
panic-handler(default): a#[panic_handler]that logs throughk32_logand traps.hardware: the display, keypad, speaker and infrared imports.fs: thek32_fs_*imports for pod volumes.linalg: native products for quantized neural networks (k32_matvec_*,k32_matmul_*,k32_vecmat_f32_i8,k32_softmax_f32) and their element-wise steps (k32_rmsnorm_f32,k32_quantize_i8,k32_rope_f32,k32_swiglu_f32,k32_add_f32,k32_argmax_f32).
The pod guide covers the request format, limits, entry-point pods and manifests.
License
Apache-2.0