From ae808502236f6333a2e817434002a1ae9a5dd1f7 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 13 Sep 2025 21:48:25 +0900 Subject: [PATCH] Update to cargo-deny api version 2 (#3475) --- .github/workflows/CI.yml | 2 +- deny.toml | 18 ++++++++++-------- examples/reverse-proxy/Cargo.toml | 1 + 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3eb2c281..f6b6c4b3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -177,7 +177,7 @@ jobs: - bans licenses sources steps: - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v1 + - uses: EmbarkStudios/cargo-deny-action@v2 with: command: check ${{ matrix.checks }} manifest-path: axum/Cargo.toml diff --git a/deny.toml b/deny.toml index cf796d19..2a8bba1d 100644 --- a/deny.toml +++ b/deny.toml @@ -1,16 +1,18 @@ +[graph] +exclude-unpublished = true + [advisories] -vulnerability = "deny" -unmaintained = "warn" -notice = "warn" +unmaintained = "none" ignore = [] [licenses] -unlicensed = "warn" -allow = [] -deny = [] -copyleft = "warn" -allow-osi-fsf-free = "either" confidence-threshold = 0.8 +allow = [ + "Apache-2.0", + "BSD-3-Clause", + "MIT", + "Unicode-3.0", +] [bans] multiple-versions = "deny" diff --git a/examples/reverse-proxy/Cargo.toml b/examples/reverse-proxy/Cargo.toml index e2816573..0f234077 100644 --- a/examples/reverse-proxy/Cargo.toml +++ b/examples/reverse-proxy/Cargo.toml @@ -2,6 +2,7 @@ name = "example-reverse-proxy" version = "0.1.0" edition = "2021" +publish = false [dependencies] axum = { path = "../../axum" }