err-derive 0.1.6

Derive macro for `std::error::Error`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use rustc_version::version;

fn version_ge(minor_min: u64) -> bool {
    let version = version().unwrap();

    version.major == 1 && version.minor >= minor_min
}

fn main() {
    if !version_ge(32) {
        panic!("`err-derive` depends on `quote 1.0`, which requires rustc >= 1.32");
    }
}