autumn-cli 0.6.0

CLI tool for the Autumn web framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    // Windows default main-thread stack is 1 MB. The Clap-derived parser for
    // this CLI now exceeds that limit with 25+ subcommands. Request 8 MB to
    // match the Linux/macOS default and prevent stack overflow at startup.
    let os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
    if os == "windows" {
        let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap_or_default();
        if env == "msvc" {
            println!("cargo:rustc-link-arg=/STACK:8388608");
        } else {
            // MinGW / GNU ld
            println!("cargo:rustc-link-arg=-Wl,--stack,8388608");
        }
    }
}