Skip to content

Commit d5e5056

Browse files
authored
Update to cargo-deny api version 2 (#3475)
1 parent e8ab602 commit d5e5056

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
- bans licenses sources
177177
steps:
178178
- uses: actions/checkout@v5
179-
- uses: EmbarkStudios/cargo-deny-action@v1
179+
- uses: EmbarkStudios/cargo-deny-action@v2
180180
with:
181181
command: check ${{ matrix.checks }}
182182
manifest-path: axum/Cargo.toml

deny.toml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
[graph]
2+
exclude-unpublished = true
3+
14
[advisories]
2-
vulnerability = "deny"
3-
unmaintained = "warn"
4-
notice = "warn"
5+
unmaintained = "none"
56
ignore = []
67

78
[licenses]
8-
unlicensed = "warn"
9-
allow = []
10-
deny = []
11-
copyleft = "warn"
12-
allow-osi-fsf-free = "either"
139
confidence-threshold = 0.8
10+
allow = [
11+
"Apache-2.0",
12+
"BSD-3-Clause",
13+
"MIT",
14+
"Unicode-3.0",
15+
]
1416

1517
[bans]
1618
multiple-versions = "deny"
@@ -21,12 +23,6 @@ skip-tree = [
2123
{ name = "base64" },
2224
# parking_lot pulls in old versions of windows-sys
2325
{ name = "windows-sys" },
24-
# old version pulled in by rustls via ring
25-
{ name = "spin" },
26-
# lots still pulls in syn 1.x
27-
{ name = "syn" },
28-
# pulled in by hyper
29-
{ name = "socket2" },
3026
# pulled in by quickcheck and cookie
3127
{ name = "rand" },
3228
]

examples/reverse-proxy/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "example-reverse-proxy"
33
version = "0.1.0"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
axum = { path = "../../axum" }

0 commit comments

Comments
 (0)