From 6dd4d40579281a7f49141eefbe84b51cd67de4c7 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 3 Feb 2023 15:55:49 +0000 Subject: [PATCH] chore: migrate to cargo-audit --- audit.toml | 14 ++++++++++++++ deny.toml | 48 ------------------------------------------------ flake.nix | 1 - 3 files changed, 14 insertions(+), 49 deletions(-) create mode 100644 audit.toml delete mode 100644 deny.toml diff --git a/audit.toml b/audit.toml new file mode 100644 index 0000000..763a749 --- /dev/null +++ b/audit.toml @@ -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 diff --git a/deny.toml b/deny.toml deleted file mode 100644 index 015b389..0000000 --- a/deny.toml +++ /dev/null @@ -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 = [] diff --git a/flake.nix b/flake.nix index 12ab30c..9406a7c 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,6 @@ nativeBuildInputs = with pkgs; [ cargo-audit - cargo-deny cargo-release rustStable watchman