From f04b3f149ea22808c693fcf7a78c874c44c510d5 Mon Sep 17 00:00:00 2001 From: "wangjie.wjdew" Date: Fri, 18 Oct 2024 14:17:43 +0800 Subject: [PATCH 1/2] fix: correct the feature name --- pilota/src/prost/encoding.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilota/src/prost/encoding.rs b/pilota/src/prost/encoding.rs index a8355624..88c6447c 100644 --- a/pilota/src/prost/encoding.rs +++ b/pilota/src/prost/encoding.rs @@ -1582,7 +1582,7 @@ macro_rules! map { let mut skip_key = key == &K::default(); let mut skip_val = val == val_default; - #[cfg(feature = "pb-encode-zero-value")] + #[cfg(feature = "pb-encode-default-value")] { skip_key = false; skip_val = false; From 72f7731b7c0508fdf3df386faf0c61bf478c5470 Mon Sep 17 00:00:00 2001 From: "wangjie.wjdew" Date: Fri, 18 Oct 2024 14:18:06 +0800 Subject: [PATCH 2/2] chore: update --- Cargo.lock | 2 +- pilota/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a325580a..b88bfb71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -821,7 +821,7 @@ dependencies = [ [[package]] name = "pilota" -version = "0.11.4" +version = "0.11.5" dependencies = [ "ahash", "anyhow", diff --git a/pilota/Cargo.toml b/pilota/Cargo.toml index c9ceb34e..fc644d86 100644 --- a/pilota/Cargo.toml +++ b/pilota/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pilota" -version = "0.11.4" +version = "0.11.5" edition = "2021" description = "Pilota is a thrift and protobuf implementation in pure rust with high performance and extensibility." documentation = "https://docs.rs/pilota"