Expand description
Deep-dive inspection (cargo tmt explain) and safe Rust test stub generation
(--emit-todos).
Structs§
- Explained
Finding - A finding extracted from a single-package JSON, workspace JSON, or JSONL report.
Functions§
- parse_
findings - Parses single-package JSON, workspace JSON, or JSONL into a flat list of findings.
- read_
report_ input - Reads report JSON/JSONL from
fromor from piped stdin (rejecting TTY stdin, symlinks/non-regular files without TOCTOU, and inputs larger than 16 MiB). - render_
explanation_ json - Renders a single finding explanation as JSON (augmented with
packageandignore_comment). - render_
explanation_ text - Renders a human-readable deep-dive explanation for a single finding.
- render_
todo_ stubs - Generates syntactically valid Rust
#[test] #[ignore]stubs for all findings acrossreports. ReturnsNonewhen there are zero findings. - resolve_
finding - Convenience wrapper returning a single resolved finding (first when multiple findings share the same ID).
- resolve_
findings - Resolves
queryagainstfindingswith strict precedence: - write_
todo_ stubs - Writes Rust
#[test] #[ignore]stubs exclusively to a brand-new file (O_CREAT | O_EXCL).