mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
cln-grpc: Derive serde Serialize/Deserialize for types
This commit is contained in:
parent
33c838212e
commit
a38d81dee0
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -267,6 +267,7 @@ dependencies = [
|
||||
"hex",
|
||||
"log",
|
||||
"prost",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"tonic",
|
||||
"tonic-build",
|
||||
|
@ -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" ] }
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user