plugrs-interface

Crates.ioplugrs-interface
lib.rsplugrs-interface
version0.1.1
created_at2025-01-08 12:09:21.461497+00
updated_at2025-01-15 06:17:39.485231+00
descriptionPlugin interface definitions for the plugrs system
homepage
repositoryhttps://github.com/Lydanne/plugrs
max_upload_size
id1508453
size3,830
Lyda (Lydanne)

documentation

https://docs.rs/plugrs-interface

README

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.

Commit count: 28

cargo fmt