diff --git a/wireguard-control-sys/build.rs b/wireguard-control-sys/build.rs index 23d1cd4..697ad87 100644 --- a/wireguard-control-sys/build.rs +++ b/wireguard-control-sys/build.rs @@ -43,6 +43,9 @@ mod linux { fn main() { linux::build_bindings(); linux::build_library(); + + println!("cargo:rerun-if-changed=c/wireguard.c"); + println!("cargo:rerun-if-changed=c/wireguard.h"); } #[cfg(not(target_os = "linux"))]