chore(cargo): disable debug info in generated profiles#242
Merged
Conversation
### Summary Default development and CI Cargo profiles to `debug = false` in Flakebox itself, the default project template, and the Cargo profile lint fixer. Retain explicit dependency package overrides so projects can later enable workspace-only line tables without paying for dependency debug information. ### Details Generate `[profile.dev.package."*"]` and `[profile.ci.package."*"]` overrides with comments explaining the workspace `line-tables-only` option. Normalize valid inline TOML tables before updating them so the fixer preserves existing settings, and add focused coverage for generated values, serialization, comments, and inline-table preservation. Update the best-practices example; release-profile behavior remains unchanged. ### Verification `cargo test -p flakebox`, Cargo metadata validation, treefmt, and `selfci check` pass. ### Reviews Focused correctness and maintainability review found malformed inline serialization/comment placement, then uncovered preservation bugs for nested and root inline tables. The implementation now emits explicit override sections, places comments before `debug`, normalizes every table level, and preserves existing inline settings. Final re-review passed with no issues. ### Summary of the original prompt Apply the Cargo debug-profile defaults documented by dpc-public-skills change `myutwysq`, keeping the scope to Flakebox generated/default Cargo configuration and directly related tests/docs.
dpc
marked this pull request as ready for review
July 24, 2026 17:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Posted by Tau
Summary
Default development and CI Cargo profiles to
debug = falsein Flakebox, generated projects, and the Cargo profile lint fixer. Keep explicit dependency package overrides so projects can later enable workspace-only line tables without enabling dependency debug information.Details
Testing
Run
selfci check.