Skip to main content

Module plugins

Module plugins 

Source
Expand description

Plugin architecture — extensible plugin system for forge-guard.

Plugins can be either:

  • Built-in: Rust types implementing the Plugin trait, registered at compile time.
  • External: Standalone binaries or scripts that communicate via a JSON IPC protocol (stdin → JSON context, stdout → JSON findings, stderr → logs).

Re-exports§

pub use Plugin as PluginTrait;

Structs§

ExamplePlugin
A built-in example plugin for demonstration and self-testing.
OfflineGuardPlugin
A built-in “no-op” plugin that warns about missing RPC.
PluginContext
Context passed to plugins during execution.
PluginExecutionResult
The result of executing a single plugin.
PluginExecutionStats
Execution statistics for a plugin run.
PluginInfo
Metadata about a registered plugin.
PluginIpcFinding
A finding as reported by an external plugin.
PluginIpcInput
JSON message sent to a plugin binary (stdin).
PluginIpcOutput
JSON message expected from a plugin binary (stdout).
PluginRegistry
The plugin registry manages plugin discovery, registration, and execution.

Enums§

PluginType
Whether a plugin is built-in or external.

Traits§

Plugin
Core trait that all built-in plugins must implement.

Functions§

register_default_plugins
Register the default set of built-in plugins into a registry.

Type Aliases§

PluginResult
Result from a plugin execution.