Files

9 lines
364 B
Rust

//! Stamps the pinned benilla commit, which a new project records as its target.
fn main() {
let pin = concat!(env!("CARGO_MANIFEST_DIR"), "/../../BENILLA_REV");
println!("cargo:rerun-if-changed={pin}");
let rev = std::fs::read_to_string(pin).expect("BENILLA_REV at the repository root");
println!("cargo:rustc-env=BENILLA_REV={}", rev.trim());
}