heim-host 0.0.11

Cross-platform host information
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env::var;

fn main() {
    let target = var("TARGET").unwrap();

    println!("cargo:rerun-if-changed=build.rs");
    if target.contains("windows") {
        println!("cargo:rerun-if-env-changed=WINAPI_NO_BUNDLED_LIBRARIES");
        println!("cargo:rerun-if-env-changed=WINAPI_STATIC_NOBUNDLE");

        // For `src/sys/windows/wtsapi32.rs`
        println!("cargo:rustc-link-lib=wtsapi32");
    }
}