Skip to main content

Module runtime

Module runtime 

Source
Expand description

Wasmtime sandbox, WASIp1 context, and plugin instance lifecycle. Wasmtime-powered sandboxed runtime for Martensite plugins.

Plugins are compiled as wasm32-wasip1 WebAssembly modules and executed with a fuel budget and epoch interruption enabled. The runtime embeds a WASIp1 context with no filesystem or network capabilities by default, and injects host functions that validate every call against a CapabilitySet.

Structs§

PluginInstance
A running WebAssembly plugin instance.
PluginRuntime
Preconfigured Wasmtime runtime environment for loading plugins.
PluginState
Per-instance host state shared with the Wasmtime store.

Enums§

PluginError
Errors that can occur while configuring or running a plugin.

Constants§

DEFAULT_FUEL_BUDGET
Default fuel budget allocated to each plugin instance.