Cargo health · Reliability
Release profile shipping full unstripped debug info
rust_doctor::cargo::release_debug_symbols
Set strip = "symbols" or remove debug from [profile.release]: full debug info ships absolute build paths inside the binary. Only [profile.release] itself is judged; profiles inheriting from it are not resolved.
- Category
- Reliability
- Default level
- warn
- Tier
- P3
- Producer
- Cargo health
- Diff scope
- line
Not a defect when
The release binary never leaves the build machine, or the packaging step splits and strips the debug info (split-debuginfo, objcopy, a symbol server) before anything ships.
What it reads
Cargo.toml, Cargo.lock and .cargo/config.toml.
Tier
Lowest tier: real, and rarely urgent.
The tier bounds how severe a rule may be; its category bounds the tier.Diff scope
The changed line itself.
What--scope contextual looks at to decide whether a change caused the finding.Change it
Turn it off, or make it blocking, without touching the code it flags:
rust-doctor --rule rust_doctor::cargo::release_debug_symbols=off .
rust-doctor --rule rust_doctor::cargo::release_debug_symbols=error .