weihanglo · GitHub

Open

@weihanglo

Open

This test documents the current behavior
when using both `-Zbuild-analysis` and `--message-format=json`.
When both `-Zbuild-analysis` and `--message-format=json` are enabled,
emit a `build-started` JSON message to stdout containing the `run_id`.
This allows external tools to associate the JSON output stream
with the corresponding log file in `~/.cargo/log/{run_id}.jsonl`.
While a better design of JSON message and structured logging is needed,
this provides a temporary workaround for those needing the old
`--timings=json` flag
Closes rust-lang#16576

@weihanglo

@epage

Merged via the queue into rust-lang:master with commit 04b8ad8

Aug 6, 2026

29 checks passed

Open

26 tasks

@weihanglo

Merged

rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request

Aug 8, 2026

pull Bot pushed a commit to LeeeeeeM/miri that referenced this pull request

Aug 9, 2026

Read the original on github.com ↗