-
Notifications
You must be signed in to change notification settings - Fork 1
/
deny.toml
65 lines (54 loc) · 1.93 KB
/
deny.toml
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
# Project policies.
#
# These policies can be enforced using `cargo deny check`.
[advisories]
ignore = [
# Ignore a nasty `localtime_r` and `setenv` race condition which can
# segfault if we try to read the localtime while someone is setting an env
# var.
#
# This can probably be fixed once
# https://github.com/chronotope/chrono/issues/602 has been addressed.
#"RUSTSEC-2020-0159",
# Also `localtime_r`.
"RUSTSEC-2020-0071",
]
[licenses]
# Don't allow code with an unclear license.
unlicensed = "deny"
# Don't allow "copylefted" licenses unless they're listed below.
copyleft = "deny"
# Allow common non-restrictive licenses. ISC is used for various DNS and crypto
# things, and it's a minimally restrictive open source license.
allow = ["MIT", "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause", "CC0-1.0", "ISC", "OpenSSL", "Zlib", "Unicode-DFS-2016"]
# Many organizations ban AGPL-licensed code
# https://opensource.google/docs/using/agpl-policy/
deny = ["AGPL-3.0"]
[[licenses.clarify]]
# Ring has a messy license.
name = "ring"
expression = "ISC AND OpenSSL AND MIT"
license-files = [
{ path = "LICENSE", hash = 3171872035 },
]
[bans]
# Warn about multiple versions of the same crate, unless we've indicated otherwise below.
multiple-versions = "warn"
deny = [
# OpenSSL has caused endless deployment and build problems, and we want
# nothing to do with it, in any version. Unforunately, `diesel` depends on
# `libpq`, which depends on OpenSSL at the C level. So we ban `openssl`
# (used from Rust), but we keep `openssl-sys` so we can do some linker
# tricks with `extern crate`.
{ name = "openssl" },
]
skip = [
]
skip-tree = [
# Rocket's pre-release is stale.
{ name = "rocket", version = "0.5.0-rc.1" },
# Build-only dependency uses some stale crates.
{ name = "pest_meta" },
# We're never running on top of a real WASI platform, so just ignore it.
{ name = "wasi"},
]