diff --git a/Cargo.toml b/Cargo.toml index 1a28d3baa..a6b84dbd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -130,6 +130,14 @@ absolute_paths = "warn" lto = "thin" strip = true +[profile.dev] +debug = "line-tables-only" +split-debuginfo = "off" + +[profile.test] +debug = "line-tables-only" +split-debuginfo = "off" + [profile.dev.package."*"] debug = false # Disable debug info for all dependencies opt-level = 1 # Shrinks monomorphized generics, reducing test binary size