| Crates.io | plugrs-host |
| lib.rs | plugrs-host |
| version | 0.1.2 |
| created_at | 2025-01-15 06:13:56.236215+00 |
| updated_at | 2025-01-15 11:47:37.31116+00 |
| description | Plugin host implementation for the plugrs system |
| homepage | |
| repository | https://github.com/Lydanne/plugrs |
| max_upload_size | |
| id | 1517150 |
| size | 9,714 |
Plugin host implementation for the plugrs system.
Add this to your Cargo.toml:
[dependencies]
plugrs-host = "0.1.0"
plugrs-interface = "0.1.0"
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);
}
This project is licensed under the MIT License - see the LICENSE file for details.