Files
Sanchith Hegde 3db49d0530 fix: set thread stack size to 4 MiB for debug builds (#163)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
2022-12-16 15:35:49 +05:30

9 lines
304 B
Rust

fn main() {
// Set thread stack size to 4 MiB for debug builds
// Reference: https://doc.rust-lang.org/std/thread/#stack-size
#[cfg(debug_assertions)]
println!("cargo:rustc-env=RUST_MIN_STACK=4194304"); // 4 * 1024 * 1024 = 4 MiB
router_env::vergen::generate_cargo_instructions();
}