| 1 | # cargo-deny configuration: which licences, sources and crates braid accepts. |
| 2 | |
| 3 | [graph] |
| 4 | all-features = true |
| 5 | |
| 6 | [advisories] |
| 7 | yanked = "deny" |
| 8 | |
| 9 | [licenses] |
| 10 | # Everything here is compatible with Apache-2.0. GPL, LGPL and AGPL are not |
| 11 | # listed, so they fail the check. |
| 12 | allow = [ |
| 13 | "Apache-2.0", |
| 14 | "Apache-2.0 WITH LLVM-exception", |
| 15 | "MIT", |
| 16 | "BSD-2-Clause", |
| 17 | "BSD-3-Clause", |
| 18 | "ISC", |
| 19 | "Zlib", |
| 20 | "CC0-1.0", |
| 21 | "Unicode-3.0", |
| 22 | "BSL-1.0", |
| 23 | "Unlicense", |
| 24 | ] |
| 25 | confidence-threshold = 0.9 |
| 26 | unused-allowed-license = "allow" |
| 27 | |
| 28 | [bans] |
| 29 | multiple-versions = "warn" |
| 30 | wildcards = "deny" |
| 31 | allow-wildcard-paths = true |
| 32 | deny = [ |
| 33 | # libgit2 is GPLv2 with a linking exception and C; braid uses gitoxide. |
| 34 | { crate = "git2", reason = "braid uses gitoxide for git interop" }, |
| 35 | { crate = "libgit2-sys", reason = "braid uses gitoxide for git interop" }, |
| 36 | { crate = "openssl-sys", reason = "use rustls" }, |
| 37 | ] |
| 38 | |
| 39 | [sources] |
| 40 | unknown-registry = "deny" |
| 41 | unknown-git = "deny" |
| 42 | allow-registry = ["https://github.com/rust-lang/crates.io-index"] |