Skip to content

Commit

Permalink
Add rerun-if-changed clause to build.rs on Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Dec 14, 2023
1 parent c25b37f commit b41fc30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ mod loader;
mod error;

fn main() {
let pnm_path = "assets/PhoneNumberMetadata.xml";
let metadata = loader::load(BufReader::new(
File::open("assets/PhoneNumberMetadata.xml").expect("could not open metadata file"),
File::open(pnm_path).expect("could not open metadata file"),
))
.expect("failed to load metadata");
println!("cargo:rerun-if-changed={pnm_path}");

let mut out = BufWriter::new(
File::create(Path::new(&env::var("OUT_DIR").unwrap()).join("database.bin"))
Expand Down

0 comments on commit b41fc30

Please sign in to comment.