feat(profile): Add built-in profile debug #17214
Conversation
|
r? @ehuss rustbot has assigned @ehuss. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
Should we include the meeting note in the PR description? |
|
Added the link and what looked like I might have been missing |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
|
@rfcbot fcp merge T-cargo This is a one-way-door decision that |
|
@weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
While we can pivot, I think an FCP is important as this is setting a direction and can be disruptive to the ecosystem if we pivoted on that direction. |
This comment has been minimized.
This comment has been minimized.
Key points: - It inherits from `dev` - Conceptually, debugging is part of the development process - The hope is this will smooth out the transition for people - `cargo install --debug` now uses `debug` instead of `dev` - `debug` changes nothing from `dev` right now. `dev` will evolve in the future (with `debug` overriding those values to leave it effectively unchanged) but that is deferred out to offer a transition period where `debug` can be used without but isn't required for debugging as people deal with multiple Rust versions. This also shrinks the change and decouples what the conversation around what the settings should be.
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
What does this PR try to resolve?
Key points:
devcargo install --debugnow usesdebuginstead ofdevdebugchanges nothing fromdevright now.devwill evolve in the future(with
debugoverriding those values to leave it effectively unchanged)but that is deferred out to offer a transition period where
debugcan be used without but isn't required for debugging as people deal
with multiple Rust versions. This also shrinks the change and
decouples what the conversation around what the settings should be.
devstill usestarget/debug: this does not change any calculation for the transition cost and any conflicts between the profiles should mostly be in the artifact-dir (which are just hard links), especially once the new build layout lands--dev/--debugflags are deferred out, needing more evaluation to decide if they are worth itSee also https://github.com/rust-lang/cargo-team/blob/main/meetings/sync-meeting/2026-07-14.md#splitting-dev-and-debug-profiles
How to test and review this PR?
This is part of #15931
build.profilewill be a follow up (Config profile #17215)devprofile changes are deferred for 1+ releases