Skip to main content

Module runtime

Module runtime 

Source
Expand description

Guest WebAssembly lifecycle for the Oxide browser.

This module coordinates fetching .wasm binaries (HTTP/HTTPS and file://), compiling them with Wasmtime, applying the sandbox policy, and linking the oxide import module (memory, host capabilities). After start_app() runs, interactive guests may export on_frame(dt_ms: u32) for a per-frame render loop; optional on_timer(callback_id: u32) callbacks run when timers expire, immediately before each frame.

Structs§

BrowserHost
Main host-side entry point: Wasmtime engine, shared tab status, and guest-facing host state.
LiveModule
A Wasmtime [Store] and typed guest exports kept alive across frames for interactive apps.

Enums§

PageStatus
Current lifecycle state of a browser tab, reflected in the UI and shared across threads.