-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-profilesArea: profilesArea: profilesA-unstableArea: nightly unstable supportArea: nightly unstable supportC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
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
[profile.release]
cargoflags = [" -Zbuild-std"]
Notes
No response
Metadata
Metadata
Assignees
Labels
A-profilesArea: profilesArea: profilesA-unstableArea: nightly unstable supportArea: nightly unstable supportC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.