From 8e98842fedd2f18811c306b2140c6b53c3415b4d Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 30 Sep 2025 22:31:32 +0200 Subject: [PATCH] CI: Disallow all warnings in `cargo deny` and prune unmatched `skip`s The warnings right now all entail `unmatched-skip` / `unmatched-skip-root` that have (likely) gotten stale since various automated Renovate bumps where `Cargo.lock` changes don't require the corresponding unmatched duplicate to be removed from `.deny.toml` again. An exception has been made for `unmatched-organization` since we don't always have a `git` dependency on a fork in `gfx-rs`, resulting in a warning about that orga being in `sources.allow-org.github`. --- .deny.toml | 10 ---------- .github/workflows/ci.yml | 2 ++ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.deny.toml b/.deny.toml index fd4fb3a8a1a..30fa7afdca4 100644 --- a/.deny.toml +++ b/.deny.toml @@ -3,17 +3,10 @@ multiple-versions = "deny" skip-tree = [ { name = "windows-sys", version = "0.45" }, { name = "winit", version = "0.29" }, - { name = "rustc_version", version = "0.2.3" }, - { name = "miniz_oxide", version = "0.7.4" }, { name = "rustc-hash", version = "1.1.0" }, # introduced by Deno, to be investigated - { name = "strum_macros", version = "0.25.3" }, { name = "petgraph", version = "0.6.5" }, - { name = "base64-simd", version = "0.7.0" }, - { name = "bit-set", version = "0.5.3" }, - { name = "bit-vec", version = "0.6.3" }, - { name = "capacity_builder", version = "0.1.3" }, ] skip = [ # Flume uses an old version @@ -35,11 +28,8 @@ skip = [ { name = "ordered-float", version = "2.10.1" }, # bindgen (used by deno) uses old version { name = "itertools", version = "0.13.0" }, - # Strum uses an old version - { name = "heck", version = "0.4.0" }, # Deno uses an old version { name = "bincode", version = "1.3.3" }, - { name = "strum", version = "0.25.0" }, ] wildcards = "deny" allow-wildcard-paths = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38c2eef7ecf..54d8561f16f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -746,6 +746,7 @@ jobs: with: command: check advisories arguments: --all-features --workspace + command-arguments: -Dwarnings -Aunmatched-organization rust-version: ${{ env.REPO_MSRV }} cargo-deny-check-rest: @@ -763,4 +764,5 @@ jobs: with: command: check bans licenses sources arguments: --all-features --workspace + command-arguments: -Dwarnings -Aunmatched-organization rust-version: ${{ env.REPO_MSRV }}