Reduce debug information for local dependencies
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.
| Metric | Baseline | Line tables only | Reduction |
|---|---|---|---|
| Target directory | 4,781,756 KiB | 4,731,300 KiB | 49.3 MiB (1.06%) |
| Web test executable | 73,315,496 bytes | 72,935,096 bytes | 380,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
codetrialweb 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.