Repository navigation
fix: allow path-only wildcard deps in cargo-deny bans - #1761
Merged
Merged
Conversation
#1758 made rustledger-wasm's sibling dev-deps path-only (no version) so cargo strips them at publish and the crates.io publish order can never fail on them. cargo-deny models a versionless path dep as a wildcard, so 'wildcards = deny' now fails every PR (and main). allow-wildcard-paths permits exactly this shape — path deps cannot bind to a published version, which is what the wildcard ban guards against. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the workspace cargo-deny configuration to keep the dependency bans policy strict while unblocking a known-safe Cargo pattern introduced in #1758 (path-only sibling dev-dependencies without a version).
Changes:
- Allows versionless path dependencies to bypass the
wildcards = "deny"rule incargo-deny. - Adds inline rationale in
deny.tomlclarifying why this exception is safe and needed for publish behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
robcohen
enabled auto-merge (squash)
July 11, 2026 13:57
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
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.
Cargo Deny is red on main (and therefore on every open PR, e.g. #1760's run): #1758 made
rustledger-wasm's sibling dev-deps path-only without a version so cargo strips them at publish and the crates.io publish order can never fail on them — but cargo-deny models a versionless path dep as a wildcard, trippingwildcards = "deny".allow-wildcard-paths = truepermits exactly this shape and nothing more: a path dep cannot bind to whatever version happens to resolve at publish time, which is what the wildcard ban exists to prevent.version = "*"registry specs remain denied.Local
cargo deny check: advisories ok, bans ok, licenses ok, sources ok.🤖 Generated with Claude Code