Reduce debug information for local dependencies

Draft
JI
1d ago
+19-5

Summary

Set debug = "line-tables-only" in the [profile.dev.package."*"] and
[profile.test.package."*"] overrides. This reduces the disk footprint of
local dependency builds while retaining source file and line information
for backtraces.

Update docs/development.md to clarify that the earlier experiment
measured relink time and that this change targets disk usage.

Apple Silicon measurements

Built the codetrial web integration test with cargo test --locked --no-run -p codetrial --test web, using a separate clean target directory
for each configuration.

MetricBaselineLine tables onlyReduction
Target directory4,781,756 KiB4,731,300 KiB49.3 MiB (1.06%)
Web test executable73,315,496 bytes72,935,096 bytes380,400 bytes (0.52%)

Testing

Ran the web integration suite serially with the line-tables-only
configuration on Apple Silicon. Result: 227 passed, 0 failed, 2 ignored.

Close #755


Summary by cubic

Reduces disk usage of local dev and test dependency builds with debug = "line-tables-only", keeping file and line info in backtraces while dropping full debug info. Workspace packages keep full debug info by default.

Updates docs/development.md to clarify the earlier measurement was relink time, and documents the rust-embed debug-assertions override.

Measurements

  • Shrinks the codetrial web test target directory by 49.3 MiB (1.06%) on Apple Silicon.
  • Web test executable shrinks by 380,400 bytes (0.52%); 227 passed, 0 failed, 2 ignored.

Closes #755.