Skip to content

Commit

Permalink
Add cargo-deny
Browse files Browse the repository at this point in the history
  • Loading branch information
w4 committed Nov 12, 2024
1 parent 28917e6 commit f7ae0bc
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 16 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -47,11 +47,17 @@ jobs:
with:
command: fmt

cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
15 changes: 3 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gix = { version = "0.67", default-features = false, features = [
] }
httparse = "1.9"
humantime = "2.1"
itertools = "0.13.0"
itertools = "0.12.1"
kanal = "0.1.0-pre8"
md5 = "0.7"
moka = { version = "0.12.0", features = ["future"] }
Expand Down
51 changes: 51 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[graph]
targets = []
all-features = false
no-default-features = false

[output]
feature-depth = 1

[advisories]
ignore = []

[licenses]
allow = [
"MIT",
"Apache-2.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"WTFPL",
"BSL-1.0",
"CC0-1.0",
"BSD-3-Clause",
"ISC",
"Zlib",
"BSD-2-Clause",
]
confidence-threshold = 0.8
exceptions = []

[bans]
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
allow = []
deny = []
skip = [
{ crate = "[email protected]", reason = "tower has not upgraded to 1.0 yet" },
{ crate = "[email protected]", reason = "gix pulls in two separate versions" },
{ crate = "[email protected]", reason = "gix has not upgraded their version of dashmap" },
]
skip-tree = [
{ name = "matchers", reason = "tracing-subscriber's env-filter pulls in an ancient regex version" }
]

[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []

0 comments on commit f7ae0bc

Please sign in to comment.