cazan-common 1.0.0

The common library to `cazan-cli` and `cazanw`
Documentation
1
2
3
4
5
6
7
use rustc_version::{version_meta, Channel};

fn main() {
    if version_meta().unwrap().channel == Channel::Nightly {
        println!("cargo:rustc-cfg=TOOLCHAIN_IS_NIGHTLY");
    }
}