#interface #dynamic-loading #plugin #api-bindings

plugin-interface

Plugin interface definitions for the plugrs system

1 unstable release

0.1.0 Jan 8, 2025

#2015 in Development tools

Download history 126/week @ 2025-01-08

126 downloads per month

MIT license

3KB

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.

No runtime deps