plugrs-host

Crates.ioplugrs-host
lib.rsplugrs-host
version0.1.2
created_at2025-01-15 06:13:56.236215+00
updated_at2025-01-15 11:47:37.31116+00
descriptionPlugin host implementation for the plugrs system
homepage
repositoryhttps://github.com/Lydanne/plugrs
max_upload_size
id1517150
size9,714
Lyda (Lydanne)

documentation

https://docs.rs/plugrs-host

README

plugrs-host

Plugin host implementation for the plugrs system.

Features

  • Dynamic plugin loading
  • Plugin lifecycle management
  • Thread-safe plugin execution
  • Error handling and recovery

Usage

Add this to your Cargo.toml:

[dependencies]
plugrs-host = "0.1.0"
plugrs-interface = "0.1.0"

Example

use plugrs_host::PluginManager;
use plugrs_interface::Plugin;

fn main() {
    let manager = PluginManager::new();

    // Load a plugin from a dynamic library or plugin_path(crate)
    let plugin = manager.load_plugin("path/to/plugin.so").unwrap();

    // Execute the plugin
    let result = plugin.execute();
    println!("Plugin result: {}", result);
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 28

cargo fmt