cargo/deny: Make clear that we use cargo audit

Both `cargo deny` and `cargo audit` can check for advisories. We want
to use `cargo audit` for advisories and `cargo deny` for its other
checks.

Notify users of `cargo deny` by providing an obviously non-existing
database path to `cargo deny`, which is printed as part of the error
message.
This commit is contained in:
Lorenz Leutgeb
2026-10-25 14:45:39 +01:00
parent 213da1fdd6
commit 1f5e0deb45
+2 -9
View File
@@ -26,18 +26,11 @@ no-default-features = false
feature-depth = 1
# This section is considered when running `cargo deny check advisories`
# We use `cargo-audit` for checking for advisories.
[advisories]
# Opt into new defaults since cargo deny 0.14.12 (2024-02-23)
version = 2
# The path where the advisory database is cloned/fetched into
db-path = "~/.cargo/advisory-db"
# The url(s) of the advisory databases to use
db-urls = ["https://github.com/rustsec/advisory-db"]
# The lint level for crates that have been yanked from their source registry.
yanked = "warn"
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
ignore = []
db-path = "/USE cargo audit NOT cargo deny TO CHECK FOR ADVISORIES/"
# This section is considered when running `cargo deny check licenses`
[licenses]