Skip to content

Commit 8f0f8ba

Browse files
authored
chore: use cargo-deny instead of cargo-audit (#25)
1 parent c65faac commit 8f0f8ba

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

.cargo/audit.toml

Lines changed: 0 additions & 15 deletions
This file was deleted.

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ bench:
1212
cargo bench
1313

1414
# Lints with everything we have in our CI arsenal
15-
lint-all: audit lint-fmt clippy license spellcheck
15+
lint-all: lint-fmt clippy license spellcheck deny
1616

17-
audit:
18-
cargo audit || (echo "See .config/audit.toml"; false)
17+
deny:
18+
cargo deny check bans licenses sources || (echo "See deny.toml"; false)
19+
20+
deny-advisories:
21+
cargo deny check advisories || (echo "See deny.toml"; false)
1922

2023
lint-fmt:
2124
cargo fmt --all --check
@@ -42,12 +45,12 @@ spellcheck:
4245

4346
install-lint-tools:
4447
cargo install --locked taplo-cli
45-
cargo install --locked cargo-audit
48+
cargo install --locked cargo-deny
4649
cargo install --locked cargo-spellcheck
4750

4851
install-lint-tools-ci:
4952
wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
5053
tar xzf cargo-binstall-x86_64-unknown-linux-musl.tgz
5154
cp cargo-binstall ~/.cargo/bin/cargo-binstall
5255

53-
cargo binstall --no-confirm taplo-cli cargo-spellcheck cargo-audit
56+
cargo binstall --no-confirm taplo-cli cargo-spellcheck cargo-deny

deny.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[advisories]
2+
ignore = []
3+
4+
[licenses]
5+
allow = ["Apache-2.0", "Apache-2.0 WITH LLVM-exception", "BSD-2-Clause", "CC0-1.0", "MIT", "Unicode-3.0", "Unlicense"]
6+
exceptions = []
7+
8+
[bans]
9+
multiple-versions = "allow"

0 commit comments

Comments
 (0)