plugin-interface 0.1.0

Plugin interface definitions for the plugrs system
Documentation
  • Coverage
  • 40%
    2 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 3.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 126.35 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Lydanne/plugrs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Lydanne

plugin-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]
plugin-interface = "0.1.0"

Example

use plugin_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.