Skip to content

Commit

Permalink
cln-grpc: Derive serde Serialize/Deserialize for types
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored and cdecker committed Jan 31, 2024
1 parent 33c8382 commit a38d81d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cln-grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ log = "0.4"
cln-rpc = { path="../cln-rpc/", version = "^0.1", optional = true }
tonic = { version = "0.8", features = ["tls", "transport"] }
prost = "0.11"
serde = { version = "1.0", features = ["derive"] }
hex = "0.4.3"
bitcoin = { version = "0.30", features = [ "serde" ] }

Expand Down
1 change: 1 addition & 0 deletions cln-grpc/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fn main() {
let builder = tonic_build::configure();
builder
.type_attribute(".", "#[derive(serde::Serialize,serde::Deserialize)]")
.protoc_arg("--experimental_allow_proto3_optional")
.compile(&["proto/node.proto"], &["proto"])
.unwrap();
Expand Down

0 comments on commit a38d81d

Please sign in to comment.