uv/docs/configuration
konsti 4d34b28657
Set 4MB stack size for all threads, introduce UV_STACK_SIZE (#12839)
See #12769 for the motivation. We set the 4MB not only for the main
thread, but also for all tokio and rayon threads to fix a stack overflow
while unpacking wheels in production on Windows.

There are two variables for setting the stack size: A new
`UV_STACK_SIZE` that takes precedent, and the existing `RUST_MIN_STACK`.
When setting the stack size, `UV_STACK_SIZE` should be preferred, since
`RUST_MIN_STACK` affects all Rust applications, including build backends
we call (e.g., maturin). The minimum stack size is set to 1MB, the
lowest stack size we observed on a platform (Windows main thread).

Fixes #12769

## Test Plan

Tested manually with the example from #12769
2025-04-16 09:27:46 +02:00
..
authentication.md Use consistent commas around i.e. and e.g. (#12157) 2025-03-13 23:42:10 +00:00
environment.md Set 4MB stack size for all threads, introduce UV_STACK_SIZE (#12839) 2025-04-16 09:27:46 +02:00
files.md Use [[index]] API in configuration example (#9065) 2024-11-12 14:43:54 -05:00
index.md Add support for named and explicit indexes (#7481) 2024-10-15 18:24:23 -04:00
indexes.md Add qualification to authenticate always documentation (#12498) 2025-04-02 19:31:18 +02:00
installer.md Supplement missing separators for UV_INSTALL_DIR in Windows. (#9507) 2024-12-19 09:53:49 -06:00