0xDocs 0x.limo

Docs / Native runtime

Rust API reference

Coming

Generated rustdoc for the sg-guest and sg-abi crates of the 0x native runtime.

The full API of the native SDK crates, generated by rustdoc from their source at each docs release:

CrateWhat it containsReference
sg-guestThe guest SDK: the wgpu backend (gpu), display and HDR (display), raw imports (sys), and safe wrappers for clock, launch arguments, input, assets, TCP, fetch, key/value storage, audio, WebRTC and workers.sg_guest
sg-abiThe ABI shared by host and guest: the GPU wire format (gpu), input events and key names (input), display constants (display), HDR negotiation and the sg_encode_output WGSL (hdr).sg_abi

The reference is built for the wasm32-unknown-unknown target, the one games are compiled for. Both crates are at version 0.1.0 and depend on wgpu 30.0.1 (sg-guest) and wgpu-types 30.0.1 (sg-abi).

For the concepts behind the API, start with the overview, the quickstart and the sg ABI.