Releases: laanwj/cln4rust
Releases · laanwj/cln4rust
rpc-v0.3.0-beta.8
v0.3.0-beta.8
Fixed
v0.3.0-beta.7
Fixed
- re-export lightningrpc::Error (commit). @vincenzopalazzo 24-08-2023
plugin-macros-v0.3.0-beta.4
Added
- add plugin macros to declare a plugin easily. (commit). @vincenzopalazzo 13-06-2023
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
conf-v0.0.3
Fixed
- fix the ambigity when we get a list of confs (commit). @vincenzopalazzo 23-05-2023
conf-v0.0.2
conf-v0.0.2
Fixed
- allow the conf to be sync and send (commit). @vincenzopalazzo 17-04-2023
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
conf-v0.0.1
v0.0.1
Fixed
- do not allow duplicate fields (commit). @vincenzopalazzo 24-02-2023
- include complex case for the parser (commit). @vincenzopalazzo 24-02-2023
- take into count inclue and comments (commit). @vincenzopalazzo 24-02-2023
- allow to specify
create_if_missing
(commit). @vincenzopalazzo 24-02-2023
plugin-v0.3.0-beta.7
plugin-v0.3.0-beta.7
Added
- support binding options from init method (commit). @vincenzopalazzo 07-01-2023
conf-v0.0.1-alpha.2
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 Changelogs
conf-v0.0.1-alpha.2
Fixed
- fix clippy report (commit). @vincenzopalazzo 05-01-2023
- make sure that all the fileds are included (commit). @vincenzopalazzo 05-01-2023
Added
- add way to flush a new conf inside a file (commit). @vincenzopalazzo 05-01-2023
conf-v0.0.1-alpha.1
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 Changelogs
conf-v0.0.1-alpha.1
Added
- add cln conf parser crate (commit). @vincenzopalazzo 05-01-2023
rpc-v0.3.0-beta.4
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 Changelogs
v0.3.0-beta.4
Fixed
- fix tests assertions (commit). @vincenzopalazzo 21-11-2022
- move the invoice field from msatoshi to amount_msat (commit). @vincenzopalazzo 21-11-2022
- be able to generate invoice with any amount (commit). @engenegr 21-11-2022