userustc_version::{version_meta, Channel};fnmain(){// note if we're on the nightly channel so we can enable doc_auto_cfg if so
ifletChannel::Nightly =version_meta().unwrap().channel {println!("cargo::rustc-check-cfg=cfg(NIGHTLY_CHANNEL)");println!("cargo:rustc-cfg=NIGHTLY_CHANNEL");}}