Skip to main content

Crate webui_wasm

Crate webui_wasm 

Source
Expand description

WebAssembly bindings for the WebUI framework.

This crate can be built as three WASM variants:

  • handler - render pre-built protocol bytes with state.
  • parser - build protocol bytes from virtual files.
  • all - parser plus handler exports for playground-style live preview.

Functions§

build_protocol
Build protocol protobuf bytes from virtual files without rendering.
protocol_tokens
Extract the CSS token name list from protocol protobuf bytes.
render
Render a pre-built WebUI protocol with state data, streaming chunks to a callback.
render_component_templates
Return component template payloads for requested component tags.
render_partial
Produce a complete JSON partial response for client-side navigation.