Skip to content

chore: set dev profile debug to 1#415

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

chore: set dev profile debug to 1#415
jdx merged 1 commit into
mainfrom
chore/profile-dev-debug-1

Conversation

@jdx

@jdx jdx commented May 3, 2026

Copy link
Copy Markdown
Owner

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 build configuration tweak that only affects local dev compilation artifacts and debug symbol detail; no runtime logic changes.

Overview
Updates Cargo.toml to set [profile.dev] debug = 1, reducing debug info emitted in dev builds (smaller target/ output) while keeping basic file/line backtraces available.

Reviewed by Cursor Bugbot for commit b9e17c3. 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

greptile-apps Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Sets [profile.dev] debug = 1 in Cargo.toml to reduce target/ directory size by omitting DWARF variable/type info while preserving file:line data for backtraces and panics. This is a well-understood Rust workspace optimization with no functional impact on test or release builds.

Confidence Score: 5/5

Safe to merge — minimal, correct config change with no runtime impact.

Single-line Cargo profile setting with well-documented semantics; no logic, no dependencies, no security surface. File:line backtrace info is preserved; only interactive debugger variable inspection is reduced.

No files require special attention.

Important Files Changed

Filename Overview
Cargo.toml Adds [profile.dev] debug = 1 to reduce DWARF output size; correct and non-breaking change.

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

@jdx jdx enabled auto-merge (squash) May 3, 2026 16:39
@jdx jdx merged commit 9419b2f into main May 3, 2026
6 checks passed
@jdx jdx deleted the chore/profile-dev-debug-1 branch May 3, 2026 16:39
jdx pushed a commit that referenced this pull request May 5, 2026
## 🤖 New release

* `pitchfork-cli`: 2.9.1 -> 2.10.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[2.10.0](v2.9.1...v2.10.0)
- 2026-05-05

### Added

- refine startup / tailing logs display
([#420](#420))
- *(proxy)* sync slug hosts
([#418](#418))
- inject daemon running info to tera template
([#419](#419))

### Fixed

- *(boot-start)* use LaunchDaemon on MacOS
([#423](#423))

### Other

- *(build)* use serious profile to eliminate binary size
([#424](#424))
- set dev profile debug to 1
([#415](#415))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
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