Expand description
cargo --message-format=json diagnostics (PSP-10 system 26).
Preserves codes, primary spans, children, and applicable suggestions from the compiler’s native JSON stream. Non-JSON lines are ignored, so mixed streams (human progress on stderr, JSON on stdout) parse cleanly.
Constants§
- PARSER_
ID - Parser identity; enters the sensor fingerprint.
Functions§
- looks_
like_ stream - Whether a captured output looks like a cargo JSON stream.
- parse
- Parse every
compiler-messagewith levelerrorfrom the stream.