error-stack 0.1.1

A context-aware error-handling library that supports arbitrary attached user data
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=nightly")
    }
}