gasm-host
Native host for gasm games. A game is one .wasm
file, and this crate runs it: wasmtime for the module, wgpu (Metal, Vulkan,
D3D12) for gasm:gfx, cpal audio, gilrs gamepads, WebSocket networking
(ws:///wss://, rustls) and per-game storage.
It ships two binaries:
And a library, for embedding games in your own app or building a runner for another platform:
use HashMap;
use ;
Guests are sandboxed: they see only their own memory and the ABI. Every pointer and handle is checked. There's no filesystem, network is opt-in, and the storage namespace is chosen by the host.
- ABI: spec (machine-readable:
spec/abi.json) - Guide: Writing runners
- Writing games: the
gasm-sdkcrate
On Linux, building needs libasound2-dev libudev-dev pkg-config. MIT licensed.