Skip to main content

Module runtime

Module runtime 

Source
Expand description

Wasmtime WebAssembly Component Model runtime for widget execution.

Widgets are precompiled WASM components that export a standard WIT interface. Each widget execution creates a fresh Runtime instance — no WASM state persists between runs.

§Precompiled Widgets

Runtime::load_module expects a precompiled WASM component for the xtensa architecture This is done via the precompiler script. All of this will be done automaticall when the widget-template is used to create a widget.

Modules§

host_api 🔒
Host API implementations for wamstime runtime.
http_sync
Channel-based bridge allowing synchronous HTTP calls from Wasmtime host function runtime::host_api::http.
platform 🔒
widget

Structs§

Runtime
Widget
Auto-generated bindings for an instance a component which implements the world widget.
WidgetIndices
Auto-generated bindings for index of the exports of widget.
WidgetPre
Auto-generated bindings for a pre-instantiated version of a component which implements the world widget.
WidgetState
Struct to how potential object states that are passed and useable inside of the host function. Currently empty.

Type Aliases§

WidgetContext
WidgetResult