feat: impl serde for semantic type (#77)

* feat: derive Serialize/Deserialize for SemanticType

* feat: derive Serialize/Deserialize for SemanticType
This commit is contained in:
Lei, HUANG
2023-08-14 22:05:55 +08:00
committed by GitHub
parent a6897eb668
commit 9b68af55c0
+4
View File
@@ -22,6 +22,10 @@ fn main() {
tonic_build::configure() tonic_build::configure()
.file_descriptor_set_path(out_dir.join("greptime_grpc_desc.bin")) .file_descriptor_set_path(out_dir.join("greptime_grpc_desc.bin"))
.enum_attribute(
"SemanticType",
"#[derive(::serde::Serialize, ::serde::Deserialize)]",
)
.compile( .compile(
&[ &[
"proto/greptime/v1/database.proto", "proto/greptime/v1/database.proto",