diff --git a/.cargo/config.toml b/.cargo/config.toml index 59349e62eb1e..9430f38d1d04 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,16 @@ [alias] docs = "doc --workspace --all-features --no-deps" + +[target.x86_64-pc-windows-msvc] +rustflags = [ + # Increases the stack size to 10MB, which is + # in line with Linux (whereas default for Windows is 1MB) + "-Clink-arg=/STACK:10000000", +] + +[target.i686-pc-windows-msvc] +rustflags = [ + # Increases the stack size to 10MB, which is + # in line with Linux (whereas default for Windows is 1MB) + "-Clink-arg=/STACK:10000000", +]