picodata-plugin

Framework for building Picodata plugins in Rust.
Installation
[dependencies]
picodata-plugin = "25.1.1"
Quick Start
That is basically a "Hello, World" plugin. A full walkthrough on a plugin creation can be found here.
impl Service for PluginService {
type Config = Option<config::Config>;
fn on_config_change(
&mut self,
_ctx: &PicoContext,
_new_config: Self::Config,
_old_config: Self::Config,
) -> CallbackResult<()> {
Ok(())
}
fn on_start(&mut self, _context: &PicoContext, _config: Self::Config) -> CallbackResult<()> {
Ok(())
}
fn on_stop(&mut self, _context: &PicoContext) -> CallbackResult<()> {
Ok(())
}
fn on_leader_change(&mut self, _context: &PicoContext) -> CallbackResult<()> {
Ok(())
}
}
Resources
Example Plugin
API Documentation
License
This project is licensed under the BSD-2-Clause license. See LICENSE for details.