Fix protoc build error

This commit is contained in:
David Caseria
2025-03-20 14:59:14 -04:00
parent fe06b93db4
commit 24a9446581

View File

@@ -1,5 +1,7 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("cargo:rerun-if-changed=src/proto/payment_processor.proto");
tonic_build::compile_protos("src/proto/payment_processor.proto")?;
tonic_build::configure()
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(&["src/proto/payment_processor.proto"], &["src/proto"])?;
Ok(())
}