Skip to main content

palladium_plugin/
lib.rs

1//! Plugin host for the Palladium actor runtime.
2//!
3//! Provides [`PluginRegistry`] for loading native shared libraries and WASM
4//! modules as actor type factories, plus the manifest and error types used
5//! throughout the plugin system.
6
7#[cfg(feature = "jit")]
8pub mod jit;
9
10#[cfg(feature = "wasmtime")]
11pub mod wasmtime_backend;
12
13pub mod error;
14pub(crate) mod ffi_actor;
15pub mod ffi_bridge;
16pub mod manifest;
17pub(crate) mod native;
18pub mod plugin_rpc;
19pub(crate) mod registry;
20pub mod wasm;
21pub(crate) mod wasm_actor;
22
23pub use error::PluginError;
24pub use ffi_bridge::make_ffi_context;
25pub use manifest::{NamespacePolicyConfig, PluginInfo, PluginKind, PluginManifest};
26pub use plugin_rpc::RegistryRpcHandler;
27pub use registry::PluginRegistry;
28pub use wasm::{WasmError, WasmHost, WasmImports, WasmInstance, WasmModule, WasmVal};
29pub use wasm_actor::WasmActor;