X0004 audit-yanked¶
Rule: Cargo.lock holds no yanked version.
| Code | X0004 (stable, never reused) |
| Id | audit-yanked |
| Category | audit |
| Source | cargo-audit (run as an executable) |
| Fix | by hand |
| Needs | cargo-audit installed |
Level per tier¶
| Tier | Level | Reason |
|---|---|---|
| small | off | |
| small-workspace | off | |
| medium | off | |
| big | off | |
| ai | off | |
| embedded | off | |
| ui | off | |
| egui | off | |
| units-strict | off | |
| units-paranoid | off |
Why¶
A yanked version was withdrawn by its authors, usually for a bug. Cargo.lock keeps it until it is updated.
How to fix¶
cargo update -p NAME to a version that is not yanked.
Configure¶
Allow one finding in the code with // spirit-level: allow(audit-yanked) <reason> (waivers); the code works there too, as in [lints.X0004].