-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added crate containing CLN GRPC bindings
- Loading branch information
Showing
8 changed files
with
15,332 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "cln-rs" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "cln_rs" | ||
|
||
[dependencies] | ||
prost = "0.13.1" | ||
tonic = { version = "0.12.1", features = ["tls"] } | ||
|
||
[build-dependencies] | ||
tonic-build = "0.12.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
### Note | ||
|
||
CLN provides a `cln-grpc` crate that provides the same definitions as this crate. I was not able to get CLN's crate to work, due to potential version | ||
differences in tonic, prost, axum, or maybe another library we're using. | ||
|
||
As a result, I've built this crate using the proto files extracted from the `cln-gprc` crate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// builds the src/cln.rs from the node.proto and primities.proto definitions | ||
fn main() -> Result<(), std::io::Error> { | ||
tonic_build::configure() | ||
.build_client(true) | ||
.build_server(false) | ||
.out_dir("src") | ||
.compile(&["protos/node.proto", "protos/primitives.proto"], &["protos"]) | ||
} |
Oops, something went wrong.