From 3f02e7bc1bd63af30cecd000fd9449b4ce69dc33 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Thu, 27 Jun 2024 14:29:11 -0700 Subject: [PATCH] fix: add proto build flag to allow option proto fields Signed-off-by: Kate Goldenring --- discovery-utils/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/discovery-utils/build.rs b/discovery-utils/build.rs index 6d5f169a3..6ec0bc4e8 100644 --- a/discovery-utils/build.rs +++ b/discovery-utils/build.rs @@ -1,6 +1,7 @@ fn main() { tonic_build::configure() .out_dir("./src/discovery") + .protoc_arg("--experimental_allow_proto3_optional") .compile(&["proto/discovery.proto"], &["proto"]) .expect("failed to compile protos"); }