validatus 0.0.6

Validator types, returns multiple tolerable errors at once
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;

fn main() {
    let rust_toolchain = env::var("RUSTUP_TOOLCHAIN").expect("RUSTUP_TOOLCHAIN not found");
    if rust_toolchain.starts_with("stable") {
    }
    else if rust_toolchain.starts_with("nightly") {
        println!("cargo:rustc-cfg=feature=\"nightly\"");
    }
    else {
        panic!("Unexpected value for rustc toolchain")
    }
}