Skip to content

Commit

Permalink
Merge pull request #64 from whisperfish/rerun-if-changed
Browse files Browse the repository at this point in the history
Add rerun-if-changed clause to build.rs on Metadata
  • Loading branch information
rubdos committed Dec 14, 2023
2 parents c25b37f + b41fc30 commit 219248f
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 219248f

Please sign in to comment.