Skip to content

Commit

Permalink
chore: increase min stack size in debug builds to solve postman errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed Dec 21, 2024
1 parent 6be65ca commit 13fbda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 13fbda2

Please sign in to comment.