aboutsummaryrefslogtreecommitdiffstats
path: root/deny.toml
blob: 0d8fbfe3214a82a37a51087e4efb8cfc95691a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
targets = [
    { triple = "x86_64-unknown-linux-musl" },
    { triple = "x86_64-unknown-linux-gnu" },
    { triple = "x86_64-apple-darwin" },
    { triple = "aarch64-apple-darwin" },
]

[advisories]
yanked = "deny"
unsound = "deny"
ignore = [
    # this is only an unmaintained warning, and will hopefully be addressed
    # by https://github.com/darfink/region-rs/pull/27
    "RUSTSEC-2020-0168",
    # this is a timing attack against using the rsa crate for encryption, but
    # we only use rsa decryption here
    "RUSTSEC-2023-0071",
]

[bans]
multiple-versions = "deny"
wildcards = "deny"
deny = [
    { name = "openssl-sys" },
]
skip = [
    # the ecosystem is pretty split on these at the moment, should keep an
    # eye on this to remove once more things have standardized on version 2
    { name = "bitflags", version = "1.3.2" },
    { name = "bitflags", version = "2.4.1" },

    # see https://github.com/dignifiedquire/num-bigint/pull/58 and
    # https://github.com/RustCrypto/RSA/issues/390 which should hopefully
    # resolve this soon
    { name = "spin", version = "0.5.2" },
    { name = "spin", version = "0.9.8" },
]

[licenses]
allow = [
    "MIT",
    "BSD-2-Clause",
    "BSD-3-Clause",
    "Apache-2.0",
    "ISC",
    "Unicode-DFS-2016",
]
copyleft = "deny"
exceptions = [
    { name = "ring", allow = ["OpenSSL", "MIT", "ISC"] }
]

[[licenses.clarify]]
name = "ring"
version = "*"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
    { path = "LICENSE", hash = 0xbd0eed23 }
]

[[licenses.clarify]]
name = "encoding_rs"
version = "*"
expression = "(Apache-2.0 OR MIT) AND BSD-3-Clause"
license-files = [
    { path = "COPYRIGHT", hash = 0x39f8ad31 }
]