From 1f5e0deb45eb731cbe90f6e07989766c3b0f2fbc Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Sun, 25 Oct 2026 14:28:29 +0100 Subject: [PATCH] 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. --- deny.toml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/deny.toml b/deny.toml index 3720748e0..de41eafa9 100644 --- a/deny.toml +++ b/deny.toml @@ -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]