diff --git a/services/tunnelbroker/rust-lib/build.rs b/services/tunnelbroker/rust-lib/build.rs --- a/services/tunnelbroker/rust-lib/build.rs +++ b/services/tunnelbroker/rust-lib/build.rs @@ -1,4 +1,8 @@ +const PROTOS_DIR: &'static str = "../../../shared/protos"; + fn main() { let _build = cxx_build::bridge("src/lib.rs").flag_if_supported("-std=c++17"); println!("cargo:rerun-if-changed=src/lib.rs"); + tonic_build::compile_protos(format!("{}/tunnelbroker.proto", PROTOS_DIR)) + .expect("Failed to compile protobuf file"); }