Skip to content

WIP: capture & store json diagnostics from cargo - #3572

Draft
syphar wants to merge 32 commits into
rust-lang:mainfrom
syphar:json-messages
Draft

syphar wants to merge 32 commits into
rust-lang:mainfrom
syphar:json-messages

Conversation

@syphar

@syphar syphar commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

So, the idea is:

  • we call the cargo build with --message-format=json.
  • but we only store the parsed messages on the side, dropping everything except compiler-messages.
  • the normal build logs still get the rendered version and don't see any json
  • we store the extracted messages in a separate build log next to the normal build log

For now, the goal for RawCargoMessage is just to do small checks on the json message, and then emit it for the .jsonl log. Later we can analyze that, or change the build-log view to render them nicely.

( this could also be an extension to rustwide, but it works like this too)

@syphar syphar self-assigned this Oct 1, 2026
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Oct 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant