userustc_version::{version_meta, Channel};fnmain(){println!("cargo::rustc-check-cfg=cfg(NIGHTLY_CHANNEL)");// 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-cfg=NIGHTLY_CHANNEL");}}