extern crate rustc_version;
use rustc_version::{version_meta, Version};
fn main() {
let enable_stable_128;
let enable_stable_maybe_uninit;
if let Ok(meta) = version_meta() {
let semver = meta.semver;
enable_stable_128 = semver >= Version::new(1, 26, 0);
enable_stable_maybe_uninit = semver >= Version::new(1, 36, 0);
} else {
enable_stable_128 = false;
enable_stable_maybe_uninit = false;
}
if enable_stable_128 {
println!("cargo:rustc-cfg=stable128");
}
if enable_stable_maybe_uninit {
println!("cargo:rustc-cfg=stable_maybe_uninit");
}
}