Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7ae0bc

Browse files
committed
Add cargo-deny
1 parent 28917e6 commit f7ae0bc

File tree

4 files changed

+64
-16
lines changed

4 files changed

+64
-16
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Check
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
- uses: actions-rs/toolchain@v1
1212
with:
1313
profile: minimal
@@ -36,7 +36,7 @@ jobs:
3636
name: Rustfmt
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v3
4040
- uses: actions-rs/toolchain@v1
4141
with:
4242
profile: minimal
@@ -47,11 +47,17 @@ jobs:
4747
with:
4848
command: fmt
4949

50+
cargo-deny:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v3
54+
- uses: EmbarkStudios/cargo-deny-action@v1
55+
5056
clippy:
5157
name: Clippy
5258
runs-on: ubuntu-latest
5359
steps:
54-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v3
5561
- uses: actions-rs/toolchain@v1
5662
with:
5763
profile: minimal

Cargo.lock

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ gix = { version = "0.67", default-features = false, features = [
4242
] }
4343
httparse = "1.9"
4444
humantime = "2.1"
45-
itertools = "0.13.0"
45+
itertools = "0.12.1"
4646
kanal = "0.1.0-pre8"
4747
md5 = "0.7"
4848
moka = { version = "0.12.0", features = ["future"] }

deny.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[graph]
2+
targets = []
3+
all-features = false
4+
no-default-features = false
5+
6+
[output]
7+
feature-depth = 1
8+
9+
[advisories]
10+
ignore = []
11+
12+
[licenses]
13+
allow = [
14+
"MIT",
15+
"Apache-2.0",
16+
"Unicode-3.0",
17+
"Unicode-DFS-2016",
18+
"WTFPL",
19+
"BSL-1.0",
20+
"CC0-1.0",
21+
"BSD-3-Clause",
22+
"ISC",
23+
"Zlib",
24+
"BSD-2-Clause",
25+
]
26+
confidence-threshold = 0.8
27+
exceptions = []
28+
29+
[bans]
30+
multiple-versions = "warn"
31+
wildcards = "allow"
32+
highlight = "all"
33+
workspace-default-features = "allow"
34+
external-default-features = "allow"
35+
allow = []
36+
deny = []
37+
skip = [
38+
{ crate = "[email protected]", reason = "tower has not upgraded to 1.0 yet" },
39+
{ crate = "[email protected]", reason = "gix pulls in two separate versions" },
40+
{ crate = "[email protected]", reason = "gix has not upgraded their version of dashmap" },
41+
]
42+
skip-tree = [
43+
{ name = "matchers", reason = "tracing-subscriber's env-filter pulls in an ancient regex version" }
44+
]
45+
46+
[sources]
47+
unknown-registry = "warn"
48+
unknown-git = "warn"
49+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
50+
allow-git = []
51+

0 commit comments

Comments
 (0)