|
1 | 1 | [advisories] |
2 | | -ignore = [ |
3 | | - # a chrono issue, this is just a test dependency |
4 | | - "RUSTSEC-2020-0071", |
5 | | -] |
6 | 2 |
|
7 | 3 | [licenses] |
| 4 | +version = 2 |
8 | 5 | confidence-threshold = 1.0 |
9 | | -copyleft = "deny" |
10 | | -unlicensed = "deny" |
11 | | -allow-osi-fsf-free = "both" |
12 | | -default = "deny" |
13 | 6 |
|
14 | 7 | # List of explictly allowed licenses |
15 | 8 | # See https://spdx.org/licenses/ for list of possible licenses |
16 | 9 | # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. |
17 | 10 | allow = [ |
18 | | - "LicenseRef-ring", |
19 | | - "LicenseRef-rustls-webpki", |
20 | | - "MPL-2.0", |
21 | 11 | "Unicode-DFS-2016", |
22 | | - "Unicode-3.0" |
| 12 | + "Apache-2.0", |
| 13 | + "BSD-3-Clause", |
| 14 | + "ISC", |
| 15 | + "MIT", |
| 16 | + "MPL-2.0", |
23 | 17 | ] |
24 | 18 |
|
25 | | -deny = [ |
26 | | - "AGPL-3.0", |
27 | | - "WTFPL", |
28 | | -] |
29 | | - |
30 | | -[[licenses.clarify]] |
31 | | -name = "ring" |
32 | | -expression = "LicenseRef-ring" |
33 | | -license-files = [ |
34 | | - { path = "LICENSE", hash = 0xbd0eed23 }, |
35 | | -] |
36 | | - |
37 | | -[[licenses.clarify]] |
38 | | -name = "rustls-webpki" |
39 | | -expression = "LicenseRef-rustls-webpki" |
40 | | -license-files = [ |
41 | | - { path = "LICENSE", hash = 0x001c7e6c }, |
| 19 | +exceptions = [ |
| 20 | + # Ring has a...complicated license. However, since it is at the core of a large number of rust |
| 21 | + # projects, we are manually allowing the OpenSSL part of the license |
| 22 | + { name = "ring", allow = [ |
| 23 | + "OpenSSL", |
| 24 | + ] }, |
| 25 | + # same exception as above for another crate |
| 26 | + { name = "aws-lc-sys", allow = [ |
| 27 | + "OpenSSL", |
| 28 | + ] }, |
42 | 29 | ] |
43 | 30 |
|
44 | 31 | [[licenses.clarify]] |
45 | 32 | name = "encoding_rs" |
46 | 33 | version = "*" |
47 | 34 | expression = "(Apache-2.0 OR MIT) AND BSD-3-Clause" |
48 | | -license-files = [ |
49 | | - { path = "COPYRIGHT", hash = 0x39f8ad31 } |
50 | | -] |
| 35 | +license-files = [{ path = "COPYRIGHT", hash = 0x39f8ad31 }] |
| 36 | + |
| 37 | +[[licenses.clarify]] |
| 38 | +name = "ring" |
| 39 | +expression = "MIT AND ISC AND OpenSSL" |
| 40 | +license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] |
51 | 41 |
|
52 | 42 | [bans] |
53 | 43 | multiple-versions = "allow" |
54 | | -skip = [ |
55 | | -] |
56 | | - |
57 | | -skip-tree = [ |
58 | | -] |
0 commit comments