gasm-host 0.2.0

Native host for gasm games (a portable game runtime on WebAssembly): wasmtime, WebGPU via wgpu, audio, gamepads, WebSocket networking and storage. Includes the gasm-run runner and gasm-relay
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Native host for [gasm](https://gasm.emdzej.pl) games.
//!
//! Load a guest `.wasm` with [`host::Game::load`], drive it with
//! [`host::Game::frame`] at the guest's frame rate, and plug in the pieces you
//! need: [`gfx::Gfx`] (wgpu: window, offscreen or null), [`audio::AudioSink`]
//! (cpal), [`net::Net`] (WebSocket, `ws://`/`wss://`), [`storage::Storage`]
//! (per-game key/value). The `gasm-run` binary in this crate is a complete
//! runner built from these parts; `gasm-relay` is the room relay.
//!
//! ABI: <https://gasm.emdzej.pl/docs/abi> (machine-readable: `spec/abi.json`).

pub mod audio;
pub mod gfx;
pub mod host;
pub mod net;
pub mod storage;