From 2e80832079e9dd3c493029cb4db062b36b4b7bdd Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 19 Dec 2024 04:09:52 +0000 Subject: [PATCH] feat: impl ser/de for `QueryContext` --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 8bd42e93..387cf4dd 100644 --- a/build.rs +++ b/build.rs @@ -30,6 +30,10 @@ fn main() { "region.RegionRequest.body", "#[derive(strum_macros::AsRefStr)]", ) + .message_attribute( + "QueryContext", + "#[derive(::serde::Serialize, ::serde::Deserialize)]", + ) .compile( &[ "proto/greptime/v1/database.proto",