diff --git a/Cargo.toml b/Cargo.toml index 35c8a7d..02cf9c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,9 @@ include = [ "/lbug-src/third_party", "/lbug-src/CMakeLists.txt", "/lbug-src/tools/CMakeLists.txt", + # Read by the single-file-header step that build.rs enables for source builds. + "/lbug-src/scripts/collect-single-file-header.py", + "/lbug-src/scripts/headers.txt", ] [dependencies] diff --git a/build.rs b/build.rs index 6f1c838..f3ccc21 100644 --- a/build.rs +++ b/build.rs @@ -618,6 +618,8 @@ fn build_ffi( println!("cargo:rerun-if-changed=lbug-src/third_party"); println!("cargo:rerun-if-changed=lbug-src/CMakeLists.txt"); println!("cargo:rerun-if-changed=lbug-src/tools/CMakeLists.txt"); + println!("cargo:rerun-if-changed=lbug-src/scripts/collect-single-file-header.py"); + println!("cargo:rerun-if-changed=lbug-src/scripts/headers.txt"); } if cfg!(windows) {