← Rule catalog

Cargo health · Reliability

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

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.

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 .

Set it once in rust-doctor.toml

Other Reliability rules