From d24b8241c58239f37bb5e1405b2ab015bce0f79f Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 14 Oct 2024 14:46:04 +0100 Subject: [PATCH] api: Rename compile > compile_protos. --- api/rust/build.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/rust/build.rs b/api/rust/build.rs index cc387dbd..303b690e 100644 --- a/api/rust/build.rs +++ b/api/rust/build.rs @@ -28,7 +28,7 @@ fn main() -> Result<(), Box> { .file_descriptor_set_path(out_dir.join("common").join("proto_descriptor.bin")) .compile_well_known_types(true) .extern_path(".google.protobuf", well_known_types_path) - .compile( + .compile_protos( &[cs_dir.join("common").join("common.proto").to_str().unwrap()], &[ proto_dir.join("chirpstack").to_str().unwrap(), @@ -53,7 +53,7 @@ fn main() -> Result<(), Box> { .compile_well_known_types(true) .extern_path(".google.protobuf", well_known_types_path) .extern_path(".common", "crate::common") - .compile( + .compile_protos( &[cs_dir.join("gw").join("gw.proto").to_str().unwrap()], &[ proto_dir.join("chirpstack").to_str().unwrap(), @@ -87,7 +87,7 @@ fn main() -> Result<(), Box> { builder = builder.message_attribute("internal.DeviceSession", "#[derive(diesel::expression::AsExpression, diesel::deserialize::FromSqlRow)] #[diesel(sql_type = diesel::sql_types::Binary)]"); } - builder.compile( + builder.compile_protos( &[cs_dir .join("internal") .join("internal.proto") @@ -119,7 +119,7 @@ fn main() -> Result<(), Box> { .extern_path(".google.protobuf", well_known_types_path) .extern_path(".common", "crate::common") .extern_path(".gw", "crate::gw") - .compile( + .compile_protos( &[cs_dir .join("integration") .join("integration.proto") @@ -153,7 +153,7 @@ fn main() -> Result<(), Box> { .extern_path(".google.protobuf", well_known_types_path) .extern_path(".common", "crate::common") .extern_path(".gw", "crate::gw") - .compile( + .compile_protos( &[ cs_dir.join("stream").join("meta.proto").to_str().unwrap(), cs_dir.join("stream").join("frame.proto").to_str().unwrap(), @@ -192,7 +192,7 @@ fn main() -> Result<(), Box> { .file_descriptor_set_path(out_dir.join("api").join("proto_descriptor.bin")) .extern_path(".common", "crate::common") .extern_path(".gw", "crate::gw") - .compile( + .compile_protos( &[ cs_dir.join("api").join("internal.proto").to_str().unwrap(), cs_dir.join("api").join("user.proto").to_str().unwrap(),