Expand description
PluginRuntime trait + InProcessRuntime (P1).
Abstracts over Wasmtime (P2, --features wasmtime) and native in-process
Rust plugins (P1, always-on). Constrained builds use the compiled-in native
registry rather than an unaudited interpreter backend.
§Architecture
PluginRegistry
│
▼
PluginRuntime ◄─── InProcessRuntime (P1, native Rust, <1 µs call)
◄─── WasmtimeRuntime (P2, Cranelift JIT, ~5 ms cold start)Structs§
- InProcess
Runtime - Native in-process runtime — loads first-party Rust plugins directly.
- Loaded
Plugin - A loaded plugin handle — returned by
PluginRuntime::load.
Traits§
- Plugin
Runtime - Abstraction over the WASM (and native) plugin execution environment.