diff --git a/lib/gen-protos/src/main.rs b/lib/gen-protos/src/main.rs index d9c6b9632..c9b8d4f01 100644 --- a/lib/gen-protos/src/main.rs +++ b/lib/gen-protos/src/main.rs @@ -29,6 +29,8 @@ fn main() -> Result<()> { prost_build::Config::new() .out_dir(&protos_dir) .include_file("mod.rs") + // For old protoc versions. 3.12.4 needs this, but 3.21.12 doesn't. + .protoc_arg("--experimental_allow_proto3_optional") .compile_protos( &input .into_iter()