Skip to content

build: debug info off by default for dev and test builds - #282

Merged
AdaWorldAPI merged 1 commit into
masterfrom
claude/debug0-default
Aug 22, 2026
Merged

build: debug info off by default for dev and test builds#282
AdaWorldAPI merged 1 commit into
masterfrom
claude/debug0-default

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Measured across this fleet on 2026-08-22: 22 GB / ~40 min with debug info vs 4.4 GB / ~10 min without, on the same tree.

That was being carried as five CARGO_PROFILE_* environment variables every session had to know and remember — so a fresh clone, a CI runner, or a session that forgot all got the expensive build. A default belongs in the manifest, not in each session's environment.

[profile.test] inherits from dev, so this one entry covers cargo build and cargo test alike. lance-graph set the same default in its own manifest (#962); MedCare-rs and OGAR followed today.

Verified it reaches the compiler rather than trusting manifest semantics: with no CARGO_PROFILE_* variables set, the rustc invocation for ndarray carries -C strip=debuginfo and no -C debuginfo=2.

Given up: line numbers in panic backtraces. debug = "line-tables-only" restores them at a fraction of full debug info when a debugging session needs them — a deliberate temporary edit, not a reason to keep the default expensive.

Note: this repo's rust-toolchain.toml pins 1.95.0, deliberately different from the 1.97.1 the rest of the fleet uses. Untouched.


Generated by Claude Code

Measured across this fleet on 2026-08-22: 22 GB / ~40 min with debug info vs
4.4 GB / ~10 min without, on the same tree. That was being carried as five
`CARGO_PROFILE_*` environment variables every session had to know and remember,
so a fresh clone, a CI runner, or a session that forgot all got the expensive
build.

`[profile.test]` inherits from `dev`, so this one entry covers `cargo build`
and `cargo test` alike. lance-graph set the same default in its own manifest
(#962); MedCare-rs followed today; this closes the same gap here.

Verified it reaches the compiler rather than trusting manifest semantics: with
no `CARGO_PROFILE_*` variables set, the rustc invocation carries
`-C strip=debuginfo` and no `-C debuginfo=2`.

Given up: line numbers in panic backtraces. `debug = "line-tables-only"`
restores them at a fraction of full debug info when a debugging session needs
them — a deliberate temporary edit, not a reason to keep the default expensive.
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e86406fd-ce88-48ad-bfa7-c6ef105ba4e7


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor

cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_cc08cfcf-91fd-4f92-b71d-1c7414b51bac)

@AdaWorldAPI
AdaWorldAPI merged commit 80f0b01 into master Aug 22, 2026
20 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.

2 participants