CI: check dependency licences with cargo-deny #599

Open
github-bot wants to merge 1 commit from github-bot/gh-599 into main AGit
Owner

@⁠Kaairim on GitHub · 2026-11-24 02:19 UTC · original
Kaairim:cargo-deny → main · +46 −0 · 2 files · 1 commits · draft

CONTRIBUTING.md asks for GPL-2.0-compatible dependencies, but nothing checks it. This adds deny.toml and a CI job (EmbarkStudios/cargo-deny-action@v2, check licenses sources) on ubuntu – it reads Cargo.lock and crate metadata and builds nothing.

The allow list is THIRD_PARTY.md's "When adding dependencies" list (MIT, BSD, Zlib, ISC, Unlicense, LGPL-2.1, GPL-2.0, MPL-2.0) plus Unicode-3.0, which unicode-ident needs today (THIRD_PARTY.md's crate line does not name it yet). Apache-2.0 alone is not allowed; "MIT OR Apache-2.0" passes through MIT. Sources: crates.io only.

What is in it

  • deny.toml
  • .github/workflows/ci.yml: a licences job next to the Windows build

Tested

  • Windows 11 (26300). I looked up the licence of every package in Cargo.lock on crates.io (64 packages): each has an allowed licence or an allowed alternative (retour is BSD-2-Clause, unicode-ident is (MIT OR Apache-2.0) AND Unicode-3.0)
  • cargo-deny was not run locally (no Rust toolchain on this machine); the job's first run on this PR is the real check

Not tested

  • cargo-deny itself, see above

AI use

  • Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line.

Improvements by William "kaairim" Deivid (wdcore).

🤖 Generated with Claude Code

**@⁠Kaairim** on GitHub · 2026-11-24 02:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/599) `Kaairim:cargo-deny` → `main` · +46 −0 · 2 files · 1 commits · draft CONTRIBUTING.md asks for GPL-2.0-compatible dependencies, but nothing checks it. This adds `deny.toml` and a CI job (`EmbarkStudios/cargo-deny-action@v2`, `check licenses sources`) on ubuntu – it reads Cargo.lock and crate metadata and builds nothing. The allow list is THIRD_PARTY.md's "When adding dependencies" list (MIT, BSD, Zlib, ISC, Unlicense, LGPL-2.1, GPL-2.0, MPL-2.0) plus Unicode-3.0, which unicode-ident needs today (THIRD_PARTY.md's crate line does not name it yet). Apache-2.0 alone is not allowed; "MIT OR Apache-2.0" passes through MIT. Sources: crates.io only. **What is in it** - `deny.toml` - `.github/workflows/ci.yml`: a `licences` job next to the Windows build **Tested** - Windows 11 (26300). I looked up the licence of every package in Cargo.lock on crates.io (64 packages): each has an allowed licence or an allowed alternative (`retour` is BSD-2-Clause, `unicode-ident` is (MIT OR Apache-2.0) AND Unicode-3.0) - cargo-deny was **not** run locally (no Rust toolchain on this machine); the job's first run on this PR is the real check **Not tested** - cargo-deny itself, see above **AI use** - Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line. Improvements by William "kaairim" Deivid (wdcore). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CONTRIBUTING.md requires GPL-2.0-compatible dependencies, but nothing
checked it. deny.toml allows the licences THIRD_PARTY.md lists as
compatible (plus Unicode-3.0 for unicode-ident) and only crates.io as a
source; Apache-2.0 alone is not allowed. Every crate in Cargo.lock today
has an allowed licence or an allowed alternative.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:43 +00:00
Author
Owner

@⁠throny on GitHub · 2026-11-24 20:15 UTC · original

Two contributors checked independently and found that #276 solves the same problem (for #265) in a different way: #1607, group D37. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

**@⁠throny** on GitHub · 2026-11-24 20:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/599#issuecomment-7143266183) <!-- xcl-1607-hint:D37 --> Two contributors checked independently and found that #276 solves the same problem (for #265) in a different way: #1607, group D37. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:06 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/599#issuecomment-7163308820) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/599/head:github-bot/gh-599'
git switch 'github-bot/gh-599'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-599'
git switch 'github-bot/gh-599'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-599'
git switch 'github-bot/gh-599'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-599'
git switch 'main'
git merge --squash 'github-bot/gh-599'
git switch 'main'
git merge --ff-only 'github-bot/gh-599'
git switch 'main'
git merge 'github-bot/gh-599'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.