From 9b68af55c050a010f202fcccb22d58f080f0a868 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" <6406592+v0y4g3r@users.noreply.github.com> Date: Mon, 14 Aug 2023 22:05:55 +0800 Subject: [PATCH] feat: impl serde for semantic type (#77) * feat: derive Serialize/Deserialize for SemanticType * feat: derive Serialize/Deserialize for SemanticType --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index e767631..0fb7dc6 100644 --- a/build.rs +++ b/build.rs @@ -22,6 +22,10 @@ fn main() { tonic_build::configure() .file_descriptor_set_path(out_dir.join("greptime_grpc_desc.bin")) + .enum_attribute( + "SemanticType", + "#[derive(::serde::Serialize, ::serde::Deserialize)]", + ) .compile( &[ "proto/greptime/v1/database.proto",