Skip to main content

Module plugin

Module plugin 

Source
Expand description

PluginRegistry — native-plugin mirror of tools/tf-types-ts/src/core/plugin.ts.

Native plugins in Rust register a trait implementation up-front (plugins are compiled in, not dlopen’d — safe subset for the prototype). The registry validates the manifest’s ed25519 signature over its canonical JSON form with signature.signature cleared.

WASM plugins are handled by the sibling plugin_wasm module; instantiate a WasmPlugin for capability-gated WASM execution. Native Rust plugins continue to be compiled in (the registry doesn’t dlopen).

Structs§

LoadedPlugin
PluginRegistry

Enums§

PluginError

Functions§

verify_plugin_signature
Standalone signature verifier for tooling (a CLI’s tf plugin verify).

Type Aliases§

NativeHandler
Opaque handler. Native Rust plugins register concrete implementations.