# `cargo deny check`: the dependencies' licences, advisories, bans and # sources, a gate as `docs/guide/contributing.md`'s "The code gates" says. [graph] all-features = true [advisories] # Every advisory of the RustSec database fails the gate, unmaintained and # unsound crates too, and a yanked version. version = 2 yanked = "deny" unmaintained = "all" unsound = "all" ignore = [] [licenses] version = 2 # Permissive licences only, so the binary can be shipped under any of them. allow = [ "0BSD", "Apache-2.0", "Apache-2.0 WITH LLVM-exception", "BSD-2-Clause", "BSD-3-Clause", "BSL-1.0", "CC0-1.0", "CDLA-Permissive-2.0", "ISC", "MIT", "MIT-0", "Unicode-3.0", "Unlicense", "Zlib", ] confidence-threshold = 0.9 # The workspace's own crates are not published and carry no licence. private = { ignore = true } [bans] multiple-versions = "allow" wildcards = "deny" allow-wildcard-paths = true [sources] unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"]