From d4e7bc031b513608641d811cfb5357a2b9a96f42 Mon Sep 17 00:00:00 2001 From: Bhekani Khumalo Date: Wed, 10 Jun 2026 20:19:28 +0100 Subject: [PATCH] chore: trim dev/test debuginfo to line tables for faster links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `cargo test` here is dominated by link time, and full per-variable DWARF is the bulk of it — the daemon test suite relinks several large binaries. Set the dev profile (which the test profile inherits) to `debug = "line-tables-only"`: panic backtraces still report file:line, but the heavy variable debuginfo is dropped and macOS skips the slow dsymutil packaging step, cutting link time across the suite. --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 17e3e845..498dd22a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -444,5 +444,14 @@ harness = false name = "user_activity" harness = false +# Test/dev build speed: the bottleneck for `cargo test` here is linking +# many large binaries (the daemon test suite especially), and full +# variable debuginfo dominates that link time. `line-tables-only` keeps +# file:line in panic backtraces while dropping the heavy per-variable +# DWARF, and on macOS it skips the slow dsymutil packaging step. The +# `test` profile inherits these from `dev`, so this covers both. +[profile.dev] +debug = "line-tables-only" + [lints] workspace = true