crate-settings 0.0.7

Allows compile-time access to crate-specific settings defined as metadata in Cargo.toml.
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
    if let Ok(var) = std::env::var("CARGO_MANIFEST_DIR") {
        if var.contains(".cargo") {
            println!(
                "cargo:warning=`crate-settings` must be a direct dependency for it to work \
                properly."
            );
        }
    }
}