From 13fbda22e1fbf5cdf0d677de85c4685a2e81e31e Mon Sep 17 00:00:00 2001 From: Narayanbhat166 Date: Sat, 21 Dec 2024 09:53:32 +0530 Subject: [PATCH] chore: increase min stack size in debug builds to solve postman errors --- crates/router/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/router/build.rs b/crates/router/build.rs index b33c168833d2..5475e0011d77 100644 --- a/crates/router/build.rs +++ b/crates/router/build.rs @@ -2,7 +2,7 @@ fn main() { // Set thread stack size to 8 MiB for debug builds // Reference: https://doc.rust-lang.org/std/thread/#stack-size #[cfg(debug_assertions)] - println!("cargo:rustc-env=RUST_MIN_STACK=8388608"); // 8 * 1024 * 1024 = 8 MiB + println!("cargo:rustc-env=RUST_MIN_STACK=12582912"); // 12 * 1024 * 1024 = 12 MiB #[cfg(feature = "vergen")] router_env::vergen::generate_cargo_instructions();