Rust core lightning plugin macros crate
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 serde_json::json;
use serde_json::Value;
use clightningrpc_plugin_macros::*;
use clightningrpc_plugin::commands::RPCCommand;
use clightningrpc_plugin::errors::PluginError;
use clightningrpc_plugin::plugin::Plugin;
#[derive(Clone)]
struct State;
// FIXME: implement a derive macros to register
// the option plugins
impl State {
pub fn new() -> Self {
Self
}
}
#[rpc_method(
rpc_name = "foo_macro",
description = "This is a simple and short description"
)]
pub fn foo_rpc(plugin: &mut Plugin