#host #dynamic-loading #plugin #api-bindings

bin+lib plugrs-host

Plugin host implementation for the plugrs system

3 releases

new 0.1.2 Jan 15, 2025
0.1.1 Jan 15, 2025
0.1.0 Jan 15, 2025

#2229 in Development tools

Download history 271/week @ 2025-01-10

271 downloads per month
Used in plugrs

MIT license

8KB
82 lines

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.

Dependencies

~93–265KB