1targets = []
2
3# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
4[advisories]
5db-path = "~/.cargo/advisory-db"
6db-urls = ["https://github.com/rustsec/advisory-db"]
7vulnerability = "deny"
8unmaintained = "deny"
9yanked = "deny"
10notice = "deny"
11ignore = [
12    # https://rustsec.org/advisories/RUSTSEC-2020-0096.html
13    # `TreeFocus` that unconditionally implements `Send` and `Sync`
14    "RUSTSEC-2020-0096",
15    # https://rustsec.org/advisories/RUSTSEC-2020-0159
16    # Potential segfault in `localtime_r` invocations
17    "RUSTSEC-2020-0159",
18]
19
20# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
21[licenses]
22unlicensed = "deny"
23allow = ["MIT", "Apache-2.0", "MPL-2.0", "ISC", "OpenSSL", "CC0-1.0", "BSD-3-Clause"]
24default = "deny"
25confidence-threshold = 0.8
26
27[[licenses.clarify]]
28name = "ring"
29version = "*"
30expression = "MIT AND ISC AND OpenSSL"
31license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
32
33[licenses.private]
34ignore = false
35registries = []
36
37# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
38[bans]
39multiple-versions = "deny"
40wildcards = "allow"
41highlight = "all"
42allow = []
43deny = []
44skip = [
45    { name = "rand_core", version = "=0.5.1" },
46    { name = "strsim", version = "=0.8.0" },
47    { name = "textwrap", version = "=0.11.0" },
48    { name = "base64", version = "=0.12.3" },
49]
50skip-tree = []
51
52# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
53[sources]
54unknown-registry = "deny"
55unknown-git = "deny"
56allow-registry = ["https://github.com/rust-lang/crates.io-index"]
57allow-git = [
58    # "https://github.com/gleam-lang/hexpm-rust",
59]
60
61[[licenses.clarify]]
62name = "encoding_rs"
63version = "*"
64expression = "(Apache-2.0 OR MIT) AND BSD-3-Clause"
65license-files = [
66    { path = "COPYRIGHT", hash = 0x39f8ad31 }
67]
68