From 96c0d42d74c693f01c87f036834468455dcb3f01 Mon Sep 17 00:00:00 2001 From: Marek Date: Mon, 19 Feb 2024 14:09:52 +0100 Subject: [PATCH] Add the `experimental_allow_proto3_optional` flag (#8282) --- zebra-grpc/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra-grpc/build.rs b/zebra-grpc/build.rs index 61423f87b..fe5143212 100644 --- a/zebra-grpc/build.rs +++ b/zebra-grpc/build.rs @@ -3,6 +3,7 @@ fn main() -> Result<(), Box> { tonic_build::configure() .btree_map(["."]) + .protoc_arg("--experimental_allow_proto3_optional") .type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]") .compile(&["proto/scanner.proto"], &[""])?; Ok(())