static_vcruntime 1.4.1

Statically link the VCRuntime when using the MSVC toolchain.
Documentation
1
2
3
4
5
6
7
fn main ()
{
    println!("cargo:rerun-if-env-changed=PROFILE");
    if ::std::env::var("PROFILE").map_or(false, |s| s == "release") {
        println!("cargo:rustc-cfg=release");
    }
}