Windows: Increase default stack size (#33)

While not strictly required for this particular example, it's a better
default for Rust development and good to get out of the way instead of
running into it and then looking for this fix in the docs.

cc slint-ui/slint#4586
This commit is contained in:
Simon Hausmann
2025-06-16 15:20:00 +02:00
committed by GitHub
parent 8cb5817b29
commit c3ae8db8af

12
.cargo/config.toml Normal file
View File

@@ -0,0 +1,12 @@
[target.x86_64-pc-windows-msvc]
# Increase default stack size to avoid running out of stack
# space in debug builds. The size matches Linux's default.
rustflags = [
"-C", "link-arg=/STACK:8000000"
]
[target.aarch64-pc-windows-msvc]
# Increase default stack size to avoid running out of stack
# space in debug builds. The size matches Linux's default.
rustflags = [
"-C", "link-arg=/STACK:8000000"
]