fn main() {
    // Expose GIT_HASH env var from CI, or "dev" for local builds.
    let hash = std::env::var("GIT_HASH").unwrap_or_else(|_| "dev".to_string());
    println!("cargo:rustc-env=TIDALDB_BUILD_HASH={hash}");
    // Rerun only if the env var changes.
    println!("cargo:rerun-if-env-changed=GIT_HASH");
}
