Expand description
Compiler diagnostics capture via cargo check --message-format=json.
We parse the JSON stream with cargo_metadata::Message rather than
scraping stderr — that gives us stable span/line/column data regardless
of rustc’s human-readable formatting changes.
Structs§
Enums§
Functions§
- last_
error - Run
cargo checkand parse the diagnostic stream. - parse_
message_ stream - Parse a
cargo check --message-format=jsonstream. Public for tests and for consumers that have already captured the stream (e.g. a Cargo hook).