heim-host 0.1.0-rc.1

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");
    }
}