Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor(router): change stack size (#4355)

Swangi Kumari4c2e97273ab0
diff --git a/crates/router/build.rs b/crates/router/build.rs
index 99d6de0fda..b33c168833 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=18388608"); // 8 * 1024 * 1024 = 8 MiB
+ println!("cargo:rustc-env=RUST_MIN_STACK=8388608"); // 8 * 1024 * 1024 = 8 MiB
#[cfg(feature = "vergen")]
router_env::vergen::generate_cargo_instructions();