Avoid spurious build script runs (#4150)

* Don't attempt to track the generated clif.isle in cargo

This causes the build script to rerun every time for me.

* Put build script debug messages on stderr instead of stdout

This keeps stdout reserved for cargo build script directives
This commit is contained in:
bjorn3
2022-05-12 20:49:20 +02:00
committed by GitHub
parent 2111f7dba8
commit c4eab2beb6
2 changed files with 13 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ impl Formatter {
let path_str = format!("{}/{}", directory, filename.as_ref());
let path = path::Path::new(&path_str);
println!("Writing generated file: {}", path.display());
eprintln!("Writing generated file: {}", path.display());
let mut f = fs::File::create(path)?;
for l in self.lines.iter().map(|l| l.as_bytes()) {