Running cargo build, followed by a second cargo build should result in the second no-oping and succeeding in a fraction of a second.
build.rs removes the .butane directory, and cargo always treats a non-existent directory as changed. Because this directory is only created when building tests, this behavior leads to what should be a no-op not in fact being so.
We fix this by ensuring we always create the directory.
Running
cargo build
, followed by a secondcargo build
should result in the second no-oping and succeeding in a fraction of a second.build.rs
removes the.butane
directory, andcargo
always treats a non-existent directory as changed. Because this directory is only created when building tests, this behavior leads to what should be a no-op not in fact being so.We fix this by ensuring we always create the directory.