blob: c0503719b0f88aa05b1360267d19a126ba4a8751 [file] [log] [blame]
use chrono::Utc;
pub fn main() {
// These are here so some doc tests work
let now = Utc::now();
println!(
"cargo:rustc-env=VERGEN_BUILD_TIMESTAMP={}",
now.to_rfc3339()
);
println!("cargo:rustc-env=VERGEN_GIT_SEMVER=v3.2.0-86-g95fc0f5");
nightly_lints();
beta_lints();
}
#[rustversion::nightly]
fn nightly_lints() {
println!("cargo:rustc-cfg=nightly_lints");
}
#[rustversion::not(nightly)]
fn nightly_lints() {}
#[rustversion::any(beta, nightly)]
fn beta_lints() {
println!("cargo:rustc-cfg=beta_lints");
}
#[rustversion::stable]
fn beta_lints() {}