Expand description
Dynamic WebAssembly plugin loader.
This is the contract surface introduced by KBD change
plugin-loader-wit-contract. The execution paths are intentionally
todo!() — a follow-up change wires them to super::sandbox.
The WIT world this loader hosts is in wit/uar-plugin.wit. Bindings
will be generated via wasmtime::component::bindgen! in a subsequent
change once the contract is stable.
Structs§
- Capability
Grant - Capability grant the host promises to a plugin at init time. Mirrors
interface types.capability-grantinwit/uar-plugin.wit. - Load
Request - Loader configuration assembled by callers and passed to
PluginLoader::load. - Plugin
Id - Handle returned by a successful load. Opaque to callers; the loader
owns the underlying
wasmtime::component::Componentand instance pool.
Enums§
- Plugin
Load Error - Errors the loader can surface. Mirrors
interface types.plugin-errorin the WIT contract plus host-side load failures. - Plugin
Source - Where the plugin’s bytes live. The loader resolves this to a
[
wasmtime::component::Component] before instantiation. - Plugin
Strategy - Execution strategy selected per-plugin by configuration.
Traits§
- Plugin
Loader - Loader surface. Implementations are wired in a follow-up change.