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
## cargo-deny policy.
##
## Four independent checks, and the reason each one matters here:
##
## advisories — this crate does cryptography and parses hostile input, so a
## RUSTSEC advisory in anything it pulls in is our problem too.
## licenses — it is meant to be depended on. A copyleft crate reaching the
## tree by accident would change the terms of everything above it.
## bans — duplicate versions of a crypto or async crate mean two
## implementations in one binary; worth knowing about.
## sources — nothing should come from anywhere but crates.io.
##
## Run: cargo deny check
[]
= true
[]
= 2
= "deny"
= []
[]
= 2
# Permissive only. This crate is MIT OR Apache-2.0, and anything that would
# force a stronger obligation on a downstream user should be a deliberate
# decision, not a transitive surprise.
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Zlib",
"CC0-1.0",
# This crate's own licence. Noncommercial, so it is deliberately not in the
# permissive set above; it is allowed here because it is ours, not a
# dependency's obligation being taken on.
"PolyForm-Noncommercial-1.0.0",
]
= 0.9
# `ring` ships a bespoke licence file combining ISC/MIT/OpenSSL terms that no
# SPDX expression captures, so it has to be named explicitly rather than
# matched. It is the crypto backend rustls uses.
[[]]
= "ring"
= "ISC AND MIT AND OpenSSL"
= [{ = "LICENSE", = 0xbd0eed23 }]
[]
= "warn"
= "deny"
# Two copies of an AEAD or a hash in one binary is worth a look, so these are
# left at `warn` rather than skipped outright.
= []
[]
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]