derive_type_level_lib 0.1.0

macros 1.1 derive macros for type-level values and users of them.
1
2
3
4
5
6
7
8
9
10
11
12
extern crate rustc_version;
use rustc_version::{version, Version};

fn main() {
    let rver = version().unwrap();

    if Version::new(1, 22, 0) <= rver {
        println!("cargo:rustc-cfg=rust_1_22");
    }

    println!("cargo:rerun-if-changed=build.rs");
}