Allow setting Cargo flags (e.g., -Zbuild-std) per profile #15053
Labels
A-profiles
Area: profiles
A-unstable
Area: nightly unstable support
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
It would be great if we could specify flags like -Zbuild-std for individual profiles in Cargo.toml, instead of creating aliases or global config. This would provide more flexibility, especially when specific configurations are needed for development or release builds. It would also eliminate the need for different aliases for building, running, benchmarks, and tests, allowing us to simply specify
--profile ....
.Proposed Solution
Example
Notes
No response
The text was updated successfully, but these errors were encountered: