Skip to content

X0002 audit-unsound

Rule: No dependency is marked unsound in the RustSec database.

Code X0002 (stable, never reused)
Id audit-unsound
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

An unsound crate lets safe code cause undefined behaviour. RustSec marks such crates; cargo-audit reports them.

How to fix

Update to a fixed version, or replace the crate.

Configure

[lints.audit-unsound]
level = "deny"
reason = "why this project wants it at this level"

Allow one finding in the code with // spirit-level: allow(audit-unsound) <reason> (waivers); the code works there too, as in [lints.X0002].