build: add rerun-if-changed for tldr.zip to improve build warnings

This commit is contained in:
Yuri Astrakhan authored and Sylvestre Ledru committed 2026-09-19 00:10:56 +02:00
1 parent 563e5c3d3f
commit ca71248c82
1 file changed
+1
+1
View File
@@ -21,6 +21,7 @@ pub fn main() {
// Check for tldr.zip when building uudoc to warn users once at build time
// instead of repeatedly at runtime for each utility
println!("cargo:rerun-if-changed=docs/tldr.zip");
if env::var("CARGO_FEATURE_UUDOC").is_ok() && !Path::new("docs/tldr.zip").exists() {
println!(
"cargo:warning=No tldr archive found, so the documentation will not include examples."