feat: impl serde for semantic type (#77)
* feat: derive Serialize/Deserialize for SemanticType * feat: derive Serialize/Deserialize for SemanticType
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user