2022-10-11 00:38:48 +03:00
|
|
|
[build]
|
|
|
|
target-dir = "target/rust/"
|
|
|
|
rustflags = ["--cfg", "tokio_unstable"]
|
|
|
|
|
|
|
|
[target.wasm32-unknown-unknown]
|
|
|
|
rustflags = [
|
2024-05-07 19:22:11 +03:00
|
|
|
# Increas the stack size from 1MB to 2MB. This is required to avoid running out of stack space
|
|
|
|
# in debug builds. The error is reported as `RuntimeError: memory access out of bounds`.
|
|
|
|
"-C",
|
|
|
|
"link-args=-z stack-size=2097152",
|
2022-10-11 00:38:48 +03:00
|
|
|
]
|
2023-02-03 02:05:25 +03:00
|
|
|
|
|
|
|
[target.x86_64-pc-windows-msvc]
|
2024-05-07 19:22:11 +03:00
|
|
|
# Static linking is required to avoid the need for the Visual C++ Redistributable. We care about this primarily for our
|
|
|
|
# installer binary package.
|
|
|
|
rustflags = ["-C", "link-arg=/STACK:2097152", "-C", "target-feature=+crt-static"]
|
2023-02-03 02:05:25 +03:00
|
|
|
|
|
|
|
[target.x86_64-pc-windows-gnu]
|
|
|
|
rustflags = ["-C", "link-arg=-Wl,--stack,2097152"]
|