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",