diff --git a/Cargo.toml b/Cargo.toml index 60e3012..5950823 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -122,3 +122,12 @@ implicit_clone = "warn" [workspace.lints.rust] unused_imports = "warn" dead_code = "warn" + +# Keep stack traces + panic locations, drop the DWARF tables that dominate +# `target/debug/` size. Dependencies shed all debuginfo (we never debug them). +[profile.dev] +debug = "line-tables-only" + +[profile.dev.package."*"] +debug = false +