diff --git a/Cargo.toml b/Cargo.toml index 293ec9a..d10b227 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lnd_grpc_rust" -version = "2.7.0" +version = "2.8.0" authors = ["Martin Habovstiak ", "Jonathan Zernik ", "Nitesh Balusu "] edition = "2018" description = "An async library implementing LND RPC via tonic_openssl and prost" @@ -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" diff --git a/build.rs b/build.rs index a6aaae8..e51131c 100644 --- a/build.rs +++ b/build.rs @@ -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(()) }