diff --git a/build.rs b/build.rs index 0fca118..289154b 100644 --- a/build.rs +++ b/build.rs @@ -2,6 +2,7 @@ use anyhow::Error; use vergen::*; fn main() -> Result<(), Error> { + let build = BuildBuilder::all_build()?; let cargo = CargoBuilder::all_cargo()?; let rustc = RustcBuilder::all_rustc()?; @@ -46,6 +47,8 @@ fn main() -> Result<(), Error> { .arg("--format=%ae") .output()?; + println!("cargo:rerun-if-changed=.git"); + println!( "cargo:rustc-env=GIT_REMOTE_URL={}", String::from_utf8(git_remote_url.stdout)?