Crate that provides a procedural macros implementation to make easy to develop a plugin developer to build a plugin.
Crate that provides a procedural macros implementation to make easy to develop a plugin developer to build a plugin.
```rust use serdejson::json; use serdejson::Value;
use clightningrpcpluginmacros::*; use clightningrpcplugin::commands::RPCCommand; use clightningrpcplugin::errors::PluginError; use clightningrpc_plugin::plugin::Plugin;
struct State;
// FIXME: implement a derive macros to register // the option plugins impl State { pub fn new() -> Self { Self } }
rpc_name = "foo_macro",
description = "This is a simple and short description"
)]
pub fn foorpc(plugin: &mut Plugin
fn onrpc(plugin: &mut Plugin
fn main() { let plugin = plugin! { state: State::new(), dynamic: true, notification: [ onrpc, ], methods: [ foorpc, ], hooks: [], }; plugin.start(); } ```
make fmt
before committingIf you want support this library consider to donate with the following methods