[go: up one dir, main page]

cargo-deny 0.11.0

Cargo plugin to help you manage large dependency graphs
Documentation
# cargo-deny is really only ever intended to run on the "normal" tier-1 targets
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]
vulnerability = "deny"
unmaintained = "deny"
notice = "deny"
unsound = "deny"
ignore = [
    # time/chrono problems, have not been a problem in practice
    "RUSTSEC-2020-0159",
    "RUSTSEC-2020-0071",
]

[bans]
multiple-versions = "deny"
deny = []
skip = [
    # clap uses an older version of ansi_term
    { name = "ansi_term", version = "=0.11.0" },
    # cargo-util depends on 2 version one of which is outdated via crypto-hash
    { name = "hex", version = "=0.3.2" },
    # cargo depends on im-rc which uses an older version
    { name = "rand_core", version = "=0.5.1" },
]

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = []

[licenses]
unlicensed = "deny"
allow-osi-fsf-free = "neither"
copyleft = "deny"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.93
allow = ["Apache-2.0", "Apache-2.0 WITH LLVM-exception", "MIT", "MPL-2.0"]

exceptions = [
    { allow = [
        "Zlib",
    ], name = "tinyvec" },
    { allow = [
        "Apache-2.0",
        "BSD-2-Clause",
    ], name = "crossbeam-queue" },
]