2 releases
new 0.1.1 | Jan 15, 2025 |
---|---|
0.1.0 | Jan 8, 2025 |
#2022 in Development tools
127 downloads per month
Used in 3 crates
3KB
plugrs-interface
Plugin interface definitions for the plugrs system.
Features
- Type-safe plugin interface
- Thread-safe plugin trait
- Zero-cost abstractions
Usage
Add this to your Cargo.toml
:
[dependencies]
plugrs-interface = "0.1.0"
Example
use plugrs_interface::Plugin;
pub struct MyPlugin;
impl Plugin for MyPlugin {
fn name(&self) -> String {
"My Plugin".to_string()
}
fn execute(&self) -> i32 {
42
}
}
License
This project is licensed under the MIT License - see the LICENSE file for details.