inline-const 0.1.0

Inline consts implemented as a macro
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate autocfg;

fn main() {
    let ac = autocfg::new();

    // Check for a minimum version for a few features
    if ac.probe_rustc_version(1, 51) {
        println!("cargo:rustc-cfg=const_generics");
    }
}