From a4d9979701b053959f2881e9fe92ca47222bf494 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Tue, 28 Apr 2026 09:42:28 -0700 Subject: [PATCH] chore(build): reduce dev/test debug info to cut target churn Set debug = "line-tables-only" and split-debuginfo = "off" for the dev and test profiles. Keeps backtraces with file/line info but trims local variable metadata and split-debug artifacts that drive APFS metadata churn during cargo clean and incremental rebuilds on macOS. Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) 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