| Crates.io | plugrs-macros |
| lib.rs | plugrs-macros |
| version | 0.1.1 |
| created_at | 2025-01-15 06:14:05.625616+00 |
| updated_at | 2025-01-15 06:17:57.394799+00 |
| description | Procedural macros for the plugrs plugin system |
| homepage | |
| repository | https://github.com/Lydanne/plugrs |
| max_upload_size | |
| id | 1517151 |
| size | 4,625 |
Procedural macros for the plugrs system.
#[plugin] macro for implementing plugin traitsAdd this to your Cargo.toml:
[dependencies]
plugrs-macros = "0.1.0"
plugrs-interface = "0.1.0"
use plugrs_interface::Plugin;
use plugrs_macros::plugin;
#[plugin]
pub struct MyPlugin;
impl Plugin for MyPlugin {
fn name(&self) -> String {
"My Plugin".to_string()
}
fn execute(&self) -> i32 {
42
}
}
This project is licensed under the MIT License - see the LICENSE file for details.