From fabfd09e4844eca38f5ad33d0d59fab6cbda98d1 Mon Sep 17 00:00:00 2001 From: kory-io Date: Mon, 28 Sep 2026 20:18:29 -0600 Subject: [PATCH] build: package the single-file header script for source builds --- Cargo.toml | 3 +++ build.rs | 2 ++ 2 files changed, 5 insertions(+) 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) {