diff --git a/native/native_rust_library/build.rs b/native/native_rust_library/build.rs index d1f419914..21af0aabb 100644 --- a/native/native_rust_library/build.rs +++ b/native/native_rust_library/build.rs @@ -1,15 +1,18 @@ fn main() { tonic_build::configure() .build_server(false) .compile( &[ "../../shared/protos/identity.proto", "../../shared/protos/tunnelbroker.proto", ], &["../../shared/protos"], ) .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); let _cxx_build = - cxx_build::bridge("src/lib.rs").flag_if_supported("-std=c++14"); - println!("cargo:rerun-if-changed=src/hello.c"); + cxx_build::bridge("src/lib.rs").flag_if_supported("-std=c++17"); + + println!("cargo:rerun-if-changed=src/lib.rs"); + println!("cargo:rerun-if-changed=../../shared/protos/identity.proto"); + println!("cargo:rerun-if-changed=../../shared/protos/tunnelbroker.proto"); }