Build the standard library with custom profile settings · Issue #2 · rust-lang/wg-cargo-std-aware (original) (raw)
This is a "use case" issue to try to clarify and discuss a use case, and how it will be addressed.
Currently the standard library is only available with the profile settings chosen when Rust is distributed. Currently that is the "release" profile with opt-level
set to 2, and codegen-units
set to 1.
It may be desirable for some to use different settings.
"std-aware Cargo" should make this quite simple to accomplish. When Cargo builds the standard library, it will use whatever profile is in effect at the time.
If the user wants to use different settings specifically for the standard library, they will likely need to individually select the crates (like core
or std
) with profile overrides.