From 4ecd498a23f49749135e537a2c0d1a1ef8792bce Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 1 Oct 2024 16:13:00 -0400 Subject: [PATCH] Minor: use non deprecated tonic-build API --- arrow-flight/gen/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arrow-flight/gen/src/main.rs b/arrow-flight/gen/src/main.rs index a3541c63b173..c4cb9dfec5ad 100644 --- a/arrow-flight/gen/src/main.rs +++ b/arrow-flight/gen/src/main.rs @@ -29,7 +29,7 @@ fn main() -> Result<(), Box> { // protoc in unbuntu builder needs this option .protoc_arg("--experimental_allow_proto3_optional") .out_dir("src") - .compile_with_config(prost_config(), &[proto_path], &[proto_dir])?; + .compile_protos_with_config(prost_config(), &[proto_path], &[proto_dir])?; // read file contents to string let mut file = OpenOptions::new() @@ -52,7 +52,7 @@ fn main() -> Result<(), Box> { // protoc in ubuntu builder needs this option .protoc_arg("--experimental_allow_proto3_optional") .out_dir("src/sql") - .compile_with_config(prost_config(), &[proto_path], &[proto_dir])?; + .compile_protos_with_config(prost_config(), &[proto_path], &[proto_dir])?; // read file contents to string let mut file = OpenOptions::new()