chore: migrate to cargo-audit

This commit is contained in:
Harsh Shandilya 2023-02-03 15:55:49 +00:00
parent 65d39f5243
commit 6dd4d40579
3 changed files with 14 additions and 49 deletions

14
audit.toml Normal file
View File

@ -0,0 +1,14 @@
[advisories]
ignore = []
informational_warnings = ["unmaintained"]
severity_threshold = "low"
[output]
deny = ["unmaintained"]
format = "terminal"
quiet = false
show_tree = true
[yanked]
enabled = true
update_index = false

View File

@ -1,48 +0,0 @@
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "aarch64-unknown-linux-gnu" },
{ triple = "x86_64-unknown-linux-musl" },
{ triple = "aarch64-apple-darwin" },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
]
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = [
]
[licenses]
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Unicode-DFS-2016",
]
copyleft = "allow"
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 0.8
exceptions = [
]
[licenses.private]
ignore = false
[bans]
multiple-versions = "deny"
wildcards = "deny"
highlight = "all"
skip = [
{ name = "bytes", version = "0.4.12" },
{ name = "futures", version = "0.3.21" }
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = []

View File

@ -80,7 +80,6 @@
nativeBuildInputs = with pkgs; [
cargo-audit
cargo-deny
cargo-release
rustStable
watchman