Repository navigation
feat(cargo-oxide): add build debug assertions flag - #1258
Merged
Merged
Conversation
Signed-off-by: Raul Estrada <[email protected]>
Signed-off-by: nihalp <[email protected]>
nihalpasham
force-pushed
the
feat/1255-debug-assertions
branch
from
September 15, 2026 06:05
976bab5 to
0c4a62c
Compare
This was referenced Sep 15, 2026
nihalpasham
approved these changes
Sep 15, 2026
nihalpasham
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed and validated 0c4a62c3: ready after maintainer rebase.
- Preserved main's device-debug handling while adding the build-only assertion profile.
- Ordinary, passthrough and metadata device builds share the policy; test profiles remain Cargo-owned.
optimization 3 + assertions on + overflow checks off
All 228 CLI tests, strict Clippy, GPU on/off/full-debug controls across the three routes, and all seven hosted workflows pass. Combined integration with #1244/#1247 also passes. Author/DCO are preserved and both commits are signed.
This completes #1255's implementation.
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.
What this adds
cargo oxide build --debug-assertionsenables conditional diagnostics while retaining release optimization and wrapping arithmetic. Closes #1255.Shape of the change
One shared profile applies to ordinary builds, Cargo passthrough and metadata-declared device builds.
Guardrails
cargo oxide testkeeps Cargo's selected profile.Validation
cfg(debug_assertions)changed as requested and overflow still wrapped.0c4a62c3; PR-only Pages deployment was intentionally skipped.