Reduce debug information for local dependencies

JI
17h ago
+22-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, document the rust-embed debug-assertions override, and record the Linux disk measurements.

Measurements

  • Linux: clean cargo test --no-run --all-targets uses 8.0 GB with line tables only, down from 9.9 GB; the web test executable shrinks from 404 MB to 270 MB.
  • Apple Silicon: codetrial web test target directory shrinks by 49.3 MiB (1.06%); the executable by 380,400 bytes (0.52%); 227 passed, 0 failed, 2 ignored.

Closes #755.