Skip to content

Releases: laanwj/cln4rust

rpc-v0.3.0-beta.8

24 Aug 23:31
Compare
Choose a tag to compare

v0.3.0-beta.8

Fixed

v0.3.0-beta.7

Fixed

plugin-macros-v0.3.0-beta.4

13 Jun 09:58
Compare
Choose a tag to compare

Added

Now it is possible make a plugin with the following code

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<State>, request: Value) -> Result<Value, PluginError> {
    let response = json!({"is_dynamic": plugin.dynamic, "rpc_request": request});
    Ok(response)
}

#[notification(on = "rpc_command")]
fn on_rpc(plugin: &mut Plugin<State>, request: &Value) {
    use clightningrpc_plugin::types::LogLevel;
    plugin.log(LogLevel::Info, "received an RPC notification");
}

fn main() {
    let plugin = plugin! {
        state: State::new(),
        dynamic: true,
        notification: [
            on_rpc,
        ],
        methods: [
            foo_rpc,
        ],
        hooks: [],
    };
    plugin.start();
}

conf-v0.0.3

23 May 21:31
e266f63
Compare
Choose a tag to compare

conf-v0.0.3

Fixed

conf-v0.0.2

18 Apr 11:12
8823c61
Compare
Choose a tag to compare

conf-v0.0.2

Fixed

Added

  • add method to remove a key value pair from the configuration (commit). @tareknaser360 17-04-2023
  • add method to lookup inside the configuration (commit). @vincenzopalazzo 16-04-2023

rpc-v0.3.0-beta.5

10 Mar 21:37
cc3849c
Compare
Choose a tag to compare

v0.3.0-beta.5

Fixed

Added

conf-v0.0.1

24 Feb 17:32
3eee993
Compare
Choose a tag to compare

v0.0.1

Fixed

plugin-v0.3.0-beta.7

07 Jan 22:15
Compare
Choose a tag to compare

plugin-v0.3.0-beta.7

Added

conf-v0.0.1-alpha.2

05 Jan 16:13
ac594e5
Compare
Choose a tag to compare

core lightning Rust Framework

A collection of libraries to develop and work with core lighting.

Project Homepage

These are the complete list of craters supported right now

Crate Description Version
clightningrpc-common Crate that provides an Generic RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc Crate that provides a strong typed RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc-plugin Crate that provides a plugin API to give the possibility to implement a plugin in Rust Crates.io
clightningrpc-plugin-macros Crate that provides a procedural macros implementation to make easy to develop a plugin developer to build a plugin Crates.io
clightningrpc-conf This crate provides configuration manager for core lightning. Crates.io

Crate Changelogs

conf-v0.0.1-alpha.2

Fixed

Added

conf-v0.0.1-alpha.1

05 Jan 14:33
b521dd8
Compare
Choose a tag to compare

core lightning Rust Framework

A collection of libraries to develop and work with core lighting.

Project Homepage

These are the complete list of craters supported right now

Crate Description Version
clightningrpc-common Crate that provides an Generic RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc Crate that provides a strong typed RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc-plugin Crate that provides a plugin API to give the possibility to implement a plugin in Rust Crates.io
clightningrpc-plugin-macros Crate that provides a procedural macros implementation to make easy to develop a plugin developer to build a plugin Crates.io
clightningrpc-conf This crate provides configuration manager for core lightning. Crates.io

Crate Changelogs

conf-v0.0.1-alpha.1

Added

rpc-v0.3.0-beta.4

22 Nov 09:05
f1bfdca
Compare
Choose a tag to compare

core lightning Rust Framework

A collection of libraries to develop and work with core lighting.

Project Homepage

These are the complete list of craters supported right now

Crate Description Version
clightningrpc-common Crate that provides an Generic RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc Crate that provides a strong typed RPC binding from rust code to the core lightning daemon Crates.io
clightningrpc-plugin Crate that provides a plugin API to give the possibility to implement a plugin in Rust Crates.io
clightningrpc-plugin-macros Crate that provides a procedural macros implementation to make easy to develop a plugin developer to build a plugin Crates.io

Crate Changelogs

v0.3.0-beta.4

Fixed