Skip to content

fix(deny): migrate to cargo-deny v2 schema#67

Merged
WomB0ComB0 merged 1 commit intomasterfrom
fix/deny-v2-schema
Apr 15, 2026
Merged

fix(deny): migrate to cargo-deny v2 schema#67
WomB0ComB0 merged 1 commit intomasterfrom
fix/deny-v2-schema

Conversation

@WomB0ComB0
Copy link
Copy Markdown
Member

cargo-deny v2 removed [licenses].unlicensed and [licenses].deny. Failing every run on master with error[deprecated]: this key has been removed. Migrate to version = 2 + implicit denial from the allow-list.

🤖 Generated with Claude Code

cargo-deny v0.14+ removed [licenses].unlicensed and [licenses].deny.
Schema now uses [licenses].version = 2 + implicit-denial-by-omission
from allow list. See EmbarkStudios/cargo-deny#611.
@WomB0ComB0 WomB0ComB0 merged commit a94f54b into master Apr 15, 2026
15 of 17 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 15, 2026

Warning

Rate limit exceeded

@WomB0ComB0 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 32 minutes and 19 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 32 minutes and 19 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d21fed29-584c-4b4d-9c0c-c281f9c4dd84

📥 Commits

Reviewing files that changed from the base of the PR and between 2942c88 and b846d78.

📒 Files selected for processing (1)
  • deny.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/deny-v2-schema

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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 deny.toml configuration for cargo-deny v2 by removing the explicit license denial list and adding a version field. Feedback suggests restoring the unlicensed = "deny" configuration for clarity and maintainability, as it remains a valid key in the v2 schema.

Comment thread deny.toml

[licenses]
unlicensed = "deny"
version = 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The unlicensed key has not been removed in the cargo-deny v2 configuration schema; it remains a valid option within the [licenses] section. While it defaults to "deny" when omitted, keeping it explicit is recommended for maintainability and clarity, particularly as the PR description incorrectly states it was removed. Note that crates lacking license metadata are governed specifically by this key and are not filtered by the allow list of license identifiers.

Suggested change
version = 2
version = 2
unlicensed = "deny"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant