Skip to content

Conversation

@weihanglo
Copy link
Member

@weihanglo weihanglo commented Dec 19, 2025

What does this PR try to resolve?

Arguments to remove it

  • The --timings=json is obsolete as -Zbuild-analysis logging is
    a more approachable option, which doesn't need passing
    --timings=json ahead of time.
  • There is no support infra built around --timings=json yet,
    while for -Zbuild-analysis we have cargo report timings already.
  • --timings=json is a UI feature inherently unstable, and has no tests.

Counterargument:

  • --timings=json outputs to stdout, but there is no alternative yet
    also outputs to stdout.
    feat(log): add output control #16418 was an attempt to add that back,
    but we then decide to punt until seeing requests or needs.

How to test and review this PR?

  • cargo help build and check the manpage
  • cargo build --help and cehck the help text
  • cargo build --timings and it works

@rustbot
Copy link
Collaborator

rustbot commented Dec 19, 2025

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-cli-help Area: built-in command-line help A-documenting-cargo-itself Area: Cargo's documentation A-json-output Area: JSON message output A-timings Area: timings S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 19, 2025
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it require an FCP?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to get a vibe check in case there is interest in build analysis having X amount of functionality before it can replace --timings=json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has entered FCP: #16420 (comment).

I personally don't think we need to wait for the extra 10 days.

I am fine if we still want to wait for the full FCP.

@weihanglo weihanglo added the T-cargo Team: Cargo label Dec 19, 2025
Arguments to remove it

* The `--timings=json` is obsolete as `-Zbuild-analysis` logging is
  a more approachable option, which doesn't need passing
  `--timings=json` ahead of time.
* There is no support infra built around `--timings=json` yet,
  while for `-Zbuild-analysis` we have `cargo report timings` already.
* `--timings=json` is a UI feature inherently unstable, and has no tests.

Counterargument:

* `--timings=json` outputs to stdout, but there is no  alternative yet
  also outputs to stdout.
@weihanglo

This comment was marked as outdated.

@rust-rfcbot

This comment was marked as outdated.

@weihanglo
Copy link
Member Author

@rfcbot fcp merge T-cargo

This removes support for --timings=json, making --timings a plain boolean flag after JSON timing output was removed. See the PR descriptions for more.

@rust-rfcbot
Copy link
Collaborator

rust-rfcbot commented Dec 19, 2025

Team member @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.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period An FCP proposal has started, but not yet signed off. disposition-merge FCP with intent to merge labels Dec 19, 2025
@ehuss ehuss moved this to FCP merge in Cargo status tracker Jan 6, 2026
@rust-rfcbot rust-rfcbot added the final-comment-period FCP — a period for last comments before action is taken label Jan 6, 2026
@rust-rfcbot
Copy link
Collaborator

🔔 This is now entering its final comment period, as per the review above. 🔔

@rust-rfcbot rust-rfcbot removed the proposed-final-comment-period An FCP proposal has started, but not yet signed off. label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-cli-help Area: built-in command-line help A-documenting-cargo-itself Area: Cargo's documentation A-json-output Area: JSON message output A-timings Area: timings disposition-merge FCP with intent to merge final-comment-period FCP — a period for last comments before action is taken S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cargo Team: Cargo

Projects

Status: FCP merge

Development

Successfully merging this pull request may close these issues.

5 participants