diff --git a/common/build.rs b/common/build.rs index f76b44f..5f76ade 100644 --- a/common/build.rs +++ b/common/build.rs @@ -5,16 +5,16 @@ fn main() { let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); tonic_build::configure() .file_descriptor_set_path(out_dir.join("admin_descriptor.bin")) - .compile(&["api/admin/admin.proto"], &["admin"]) + .compile_protos(&["api/admin/admin.proto"], &["admin"]) .unwrap(); tonic_build::configure() .file_descriptor_set_path(out_dir.join("locale_descriptor.bin")) - .compile(&["api/locale/locale.proto"], &["locale"]) + .compile_protos(&["api/locale/locale.proto"], &["locale"]) .unwrap(); tonic_build::configure() .file_descriptor_set_path(out_dir.join("systemd_descriptor.bin")) - .compile(&["api/systemd/systemd.proto"], &["systemd"]) + .compile_protos(&["api/systemd/systemd.proto"], &["systemd"]) .unwrap(); }