From 1bd6661f7a41c50032eb37aaa9a6f89388dc7af4 Mon Sep 17 00:00:00 2001 From: Daniel Kim Date: Thu, 1 Oct 2026 11:28:45 -0700 Subject: [PATCH 1/2] Use line-tables-only debuginfo for dev builds Full debuginfo made each worktree's target/ grow to several GB. File:line backtraces are kept; only debugger variable inspection is lost. Co-Authored-By: Claude --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 94f6ae5bc..56d6645b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,3 +119,7 @@ embed-resource = "3" [profile.dist] inherits = "release" lto = "thin" + +# Full debuginfo bloats target/ by gigabytes; file:line backtraces are all we use. +[profile.dev] +debug = "line-tables-only" From 854e16a222b7335f5e94be0dd74d38d8b11fc197 Mon Sep 17 00:00:00 2001 From: Daniel Kim Date: Thu, 1 Oct 2026 15:04:12 -0700 Subject: [PATCH 2/2] Drop debuginfo for third-party crates in dev builds Co-Authored-By: Claude --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 56d6645b6..7809d81c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -123,3 +123,7 @@ lto = "thin" # Full debuginfo bloats target/ by gigabytes; file:line backtraces are all we use. [profile.dev] debug = "line-tables-only" + +# Third-party crates need no line info; saves another ~0.2 GiB per build. +[profile.dev.package."*"] +debug = false