Skip to content

chore: build dev and test without debug info - #25

Merged
shinaoka merged 1 commit into
mainfrom
chore/dev-profile-no-debug-info
Oct 11, 2026
Merged

shinaoka merged 1 commit into
mainfrom
chore/dev-profile-no-debug-info

Conversation

@shinaoka

Copy link
Copy Markdown
Member

Why

Dev and test builds do not read DWARF, and it multiplies what every target directory and the shared build cache hold. Measured on this machine: the local kache store holds 335 GiB, of which 320 GiB is dev-profile artifacts, with individual crates above 1 GiB (a strided_kernel dev rlib is 1.13 GiB). None of that is read by cargo test.

What

debug = 1 becomes 0 in [profile.dev] and [profile.test]. Both keep full debug assertions and overflow checks; only the DWARF goes.

Note

CARGO_PROFILE_DEV_DEBUG=2 (or line-tables-only for backtraces alone) restores debug info for a session without changing this file.

@shinaoka
shinaoka force-pushed the chore/dev-profile-no-debug-info branch from 8a0a174 to 3bf8518 Compare October 11, 2026 11:13
@shinaoka
shinaoka merged commit d9920ba into main Oct 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant