Skip to content

Commit

Permalink
Remove 'cargo:rerun-if-changed=generator/'
Browse files Browse the repository at this point in the history
The generator is a dependency crate, so Cargo will already handles it on its own
when in the Git repo.

This fixes the issue of the directory being marked as dirty when building
the unicode_names crate from crates.io rather than from the Git repo, as the
directory doesn't exist in .crate packages.
  • Loading branch information
progval committed Mar 10, 2024
1 parent a18dc1f commit b25d761
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const NAME_ALIASES: &str = include_str!("data/NameAliases.txt");
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=data/");
println!("cargo:rerun-if-changed=generator/");
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
{
let mut generated_path = out_dir.clone();
Expand Down

0 comments on commit b25d761

Please sign in to comment.