From ac83fad6922c5da22f08c8fa053d706695737178 Mon Sep 17 00:00:00 2001 From: Sunli Date: Mon, 9 Sep 2024 13:51:10 +0800 Subject: [PATCH] windows: Set the default stack size to 8M on Windows. (#228) --- .cargo/config.toml | 2 ++ crates/app/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..34415225 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=/STACK:8000000"] diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 41027bc1..752e088e 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -1,4 +1,4 @@ -use std::sync::Arc; +use std::{sync::Arc, thread}; use anyhow::Result; use app_state::AppState;