msvc 0.1.0

A tool to automate setup for MSVC projects with vc-ltl and thunk-rs.
1
2
3
4
5
6
7

fn main() {
    if std::env::var("CARGO_CFG_TARGET_ENV").map_or(false, |env| env == "msvc") {
        // 确保在 MSVC 目标时使用静态链接 CRT
        println!("cargo:rustc-link-lib=static=msvcrt");
    }
}