1 2 3 4 5 6 7
fn main() { println!("cargo:rerun-if-changed=build.rs"); let channel = version_check::Channel::read().unwrap(); if channel.is_nightly() { println!("cargo:rustc-cfg=feature=\"nightly\""); } }