cargo-what 0.1.3

Tells you what type things are
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::env;

// we need this to get any useful config into cargo
fn main() {
    // catch env changes
    println!("cargo:rerun-if-env-changed=CARGO_WHAT_QUERY");
    // set cfg
    if env::var("CARGO_WHAT_QUERY").is_ok() {
        println!("cargo:rustc-cfg=cargo_what_query");
    }
}