From 0194fd72beecb539afd0750812b88ad3aae9705a Mon Sep 17 00:00:00 2001 From: Andrej Orsula Date: Wed, 20 Nov 2024 15:55:00 +0100 Subject: [PATCH] Fix cargo-deny compatibility Signed-off-by: Andrej Orsula --- deny.toml | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/deny.toml b/deny.toml index 1d316cb..d91827c 100644 --- a/deny.toml +++ b/deny.toml @@ -1,53 +1,46 @@ -# `cargo deny` is only intended to run these targets for this project +[graph] targets = [ { triple = "aarch64-unknown-linux-gnu" }, { triple = "x86_64-unknown-linux-gnu" }, { triple = "x86_64-unknown-linux-musl" }, ] +all-features = true # Considered when running `cargo deny check advisories` # https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html [advisories] -notice = "deny" -unmaintained = "warn" -unsound = "deny" -vulnerability = "deny" -yanked = "deny" ignore = [] +# Considered when running `cargo deny check bans` +# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html +[bans] +multiple-versions = "warn" +wildcards = "allow" +deny = [] +skip = [] +skip-tree = [] + # Considered when running `cargo deny check licenses` # https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html [licenses] -allow-osi-fsf-free = "neither" -copyleft = "deny" -unlicensed = "deny" private = { ignore = true } -confidence-threshold = 0.925 +confidence-threshold = 0.9 allow = [ "Apache-2.0 WITH LLVM-exception", # https://spdx.org/licenses/LLVM-exception.html "Apache-2.0", # https://spdx.org/licenses/Apache-2.0.html - "BSD-3-Clause", # https://spdx.org/licenses/BSD-3-Clause.html - "ISC", # https://spdx.org/licenses/ISC.html "MIT", # https://spdx.org/licenses/MIT.html - "MPL-2.0", # https://spdx.org/licenses/MPL-2.0.html - "Unicode-DFS-2016", # https://spdx.org/licenses/Unicode-DFS-2016.html + "Unicode-3.0", # https://spdx.org/licenses/Unicode-3.0.html ] exceptions = [] - -# Considered when running `cargo deny check bans` -# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html -[bans] -multiple-versions = "warn" -wildcards = "allow" -deny = [] -skip = [] -skip-tree = [] +[[licenses.clarify]] +crate = "ring" +expression = "ISC" +license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] # Considered when running `cargo deny check sources` # https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html [sources] unknown-registry = "deny" unknown-git = "deny" - [sources.allow-org] github = ["AndrejOrsula"]