Skip to content

Commit

Permalink
add serde serialize support and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Sep 21, 2024
1 parent 4eed238 commit a185149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lnd_grpc_rust"
version = "2.7.0"
version = "2.8.0"
authors = ["Martin Habovstiak <[email protected]>", "Jonathan Zernik <[email protected]>", "Nitesh Balusu <[email protected]>"]
edition = "2018"
description = "An async library implementing LND RPC via tonic_openssl and prost"
Expand All @@ -26,6 +26,7 @@ tower = "0.5.0"
pretty_env_logger = "0.5.0"
hex = "0.4.3"
prost = { version = "0.10", features = ["prost-derive"] }
serde = { version = "1.0", features = ["derive"] }

[build-dependencies]
tonic-build = "0.7"
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ fn main() -> std::io::Result<()> {
tonic_build::configure()
.build_client(true)
.build_server(false)
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.compile(&proto_paths, &[dir])?;

Ok(())
}

0 comments on commit a185149

Please sign in to comment.