Skip to content

Commit

Permalink
Remove usage of deprecated method
Browse files Browse the repository at this point in the history
Signed-off-by: Santtu Lakkala <[email protected]>
  • Loading branch information
slakkala committed Oct 28, 2024
1 parent 5cc499f commit cfc55ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit cfc55ef

Please sign in to comment.