feat(build): Rerun build on circuit dir or lib dir change (#20)

This commit is contained in:
Álex 2026-05-15 15:00:16 +02:00 committed by GitHub
parent f195de907e
commit 3a790a3172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,6 +179,8 @@ pub fn build(circuit_name: &str, circuit_lib_dir_var: &str) {
.to_str()
.expect("Failed to convert the bundle library directory path to a string");
println!("cargo:rerun-if-changed={circuit_lib_dir_str}");
println!("cargo:rerun-if-changed={bundle_lib_dir_str}");
println!("cargo:rustc-env={circuit_lib_dir_var}={circuit_lib_dir_str}"); // Ensure it's always defined for downstream crates.
println!("cargo:rustc-link-search=native={circuit_lib_dir_str}");
println!("cargo:rustc-link-search=native={bundle_lib_dir_str}");