Files
uv/crates/uv-configuration/src/lib.rs
T
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

50 lines
1015 B
Rust

pub use authentication::*;
pub use build_options::*;
pub use concurrency::*;
pub use config_settings::*;
pub use constraints::*;
pub use dependency_groups::*;
pub use dry_run::*;
pub use editable::*;
pub use export_format::*;
pub use extras::*;
pub use hash::*;
pub use install_options::*;
pub use name_specifiers::*;
pub use overrides::*;
pub use package_options::*;
pub use preview::*;
pub use project_build_backend::*;
pub use required_version::*;
pub use sources::*;
pub use target_triple::*;
pub use threading::*;
pub use trusted_host::*;
pub use trusted_publishing::*;
pub use vcs::*;
mod authentication;
mod build_options;
mod concurrency;
mod config_settings;
mod constraints;
mod dependency_groups;
mod dry_run;
mod editable;
mod export_format;
mod extras;
mod hash;
mod install_options;
mod name_specifiers;
mod overrides;
mod package_options;
mod preview;
mod project_build_backend;
mod required_version;
mod sources;
mod target_triple;
mod threading;
mod trusted_host;
mod trusted_publishing;
mod vcs;