Skip to content

chore: set dev profile debug to 1#462

Merged
jdx merged 1 commit intomainfrom
chore/profile-dev-debug-1
May 3, 2026
Merged

chore: set dev profile debug to 1#462
jdx merged 1 commit intomainfrom
chore/profile-dev-debug-1

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented May 3, 2026

Summary

Reduces target/ disk usage by setting [profile.dev] debug = 1, while keeping backtrace file:line info intact.

The default debug = 2 writes full DWARF — including variable/type info that's only needed when stepping through code in a debugger (lldb/gdb). With debug = 1, panics, RUST_BACKTRACE=1, and error chains still resolve to file:line; only debugger variable inspection is reduced.

In practice this typically shrinks target/ by a meaningful percentage, which adds up across worktrees.

Test plan

  • cargo build still succeeds
  • CI is green

This PR was generated by an AI coding assistant.


Note

Low Risk
Low risk: this only changes the Cargo dev build profile’s debug info level and should not affect runtime behavior; the main risk is reduced debugger variable/type inspection during local development.

Overview
Reduces dev build debug info by adding [profile.dev] debug = 1 in Cargo.toml, which can shrink target/ artifacts while preserving file/line backtraces.

No application code changes; this only affects local/CI dev compilation settings.

Reviewed by Cursor Bugbot for commit 4d5a607. Bugbot is set up for automated code reviews on this repo. Configure here.

Reduces target/ disk usage while keeping backtrace file:line info.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 3, 2026

Greptile Summary

This PR sets debug = 1 in [profile.dev] within the workspace-root Cargo.toml, reducing the DWARF debug info level from the default 2 (full variable/type info) to 1 (file:line only). This is a well-understood Rust build optimization that meaningfully shrinks target/ directory size with no impact on panics, RUST_BACKTRACE=1, or error chains — only interactive debugger variable inspection is affected.

Confidence Score: 5/5

This PR is safe to merge — it is a single-line build config change with no runtime impact.

The change is a well-understood Rust build profile setting, correctly placed in the workspace root Cargo.toml so it applies to all workspace members. No logic, security, or correctness concerns.

No files require special attention.

Important Files Changed

Filename Overview
Cargo.toml Adds [profile.dev] debug = 1 to reduce DWARF debug info level from the default 2, shrinking target/ size while retaining file:line info for backtraces.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[cargo build] --> B{profile?}
    B -->|dev| C["[profile.dev]\ndebug = 1"]
    B -->|release| D["[profile.release]\n(default)"]
    C --> E["DWARF: line/file info only\nNo variable/type info"]
    D --> F["No debug info (default)"]
    E --> G["✅ Backtraces: file:line intact\n✅ RUST_BACKTRACE=1 works\n⚠️ Debugger variable inspection reduced"]
    E --> H["Smaller target/ directory"]
Loading

Reviews (1): Last reviewed commit: "chore: set dev profile debug to 1" | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Cargo.toml file to configure the development profile, specifically setting the debug level to 1. There are no review comments, and I have no further feedback to provide.

@jdx jdx enabled auto-merge (squash) May 3, 2026 16:36
@jdx jdx merged commit 83f0038 into main May 3, 2026
18 checks passed
@jdx jdx deleted the chore/profile-dev-debug-1 branch May 3, 2026 16:45
jdx pushed a commit that referenced this pull request May 6, 2026
### 🚀 Features

- **(github-oauth)** add github oauth lease backend by
[@jdx](https://github.com/jdx) in
[#464](#464)

### 🐛 Bug Fixes

- **(ci)** de-duplicate sponsor section in release notes by
[@jdx](https://github.com/jdx) in
[#459](#459)

### 🔍 Other Changes

- **(ci)** use !cancelled() instead of always() for final job by
[@jdx](https://github.com/jdx) in
[#461](#461)
- set dev profile debug to 1 by [@jdx](https://github.com/jdx) in
[#462](#462)
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