-
Notifications
You must be signed in to change notification settings - Fork 14
/
deny.toml
106 lines (90 loc) · 3.15 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[bans]
# Forbid multiple versions of same dependency (with some exceptions)
# TODO: Change to "deny" once we crack down on duplication
multiple-versions = "warn"
# Avoid adding dependencies to this list as this slows down compilation.
# Find another ways to avoid duplication.
skip-tree = []
# We should always specify version ranges
wildcards = "deny"
# We specify features explicitly to avoid bloat
# TODO: https://github.com/EmbarkStudios/cargo-deny/issues/699
# external-default-features = "deny"
# TODO: https://github.com/EmbarkStudios/cargo-deny/issues/700
# workspace-default-features = "deny"
deny = [
### Crates we shouldn't use ####
# Use `md-5` instead, which is part of the RustCrypto ecosystem
{ name = "md5" },
# TODO: We should decide whether to stick with rustls or openssl and deny one of them
### Creates we deny multiple versions of ###
# This is a temporary approach until we deny by default with some exceptions
{ name = "alloy", deny-multiple-versions = true },
{ name = "arrow", deny-multiple-versions = true },
{ name = "axum", deny-multiple-versions = true },
{ name = "aws-config", deny-multiple-versions = true },
{ name = "clap", deny-multiple-versions = true },
{ name = "datafusion", deny-multiple-versions = true },
{ name = "dill", deny-multiple-versions = true },
# TODO: waiting for aws-sdk to upgrade
# https://github.com/awslabs/aws-sdk-rust/issues/977
# { name = "hyper", deny-multiple-versions = true },
{ name = "object_store", deny-multiple-versions = true },
{ name = "parquet", deny-multiple-versions = true },
{ name = "prost", deny-multiple-versions = true },
{ name = "reqwest", deny-multiple-versions = true },
# { name = "rustls", deny-multiple-versions = true },
{ name = "sqlx", deny-multiple-versions = true },
{ name = "tokio", deny-multiple-versions = true },
{ name = "tonic", deny-multiple-versions = true },
]
[licenses]
allow = [
"Apache-2.0",
"CC0-1.0",
"0BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"ISC",
"MIT",
"MPL-2.0",
"OpenSSL",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
private = { ignore = true }
[[licenses.exceptions]]
allow = ["Unicode-DFS-2016"]
name = "unicode-ident"
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[sources]
unknown-git = "deny"
unknown-registry = "deny"
allow-org = { github = [
"kamu-data",
"apache",
"alloy-rs",
"datafusion-contrib",
] }
[advisories]
yanked = "deny"
# TODO: Remove when patches are available
ignore = [
# rsa crate vulnerability (used by sqlx), no fix available yet
# https://rustsec.org/advisories/RUSTSEC-2023-0071.html
"RUSTSEC-2023-0071",
# Unmaintained (proc-macro-error)
# https://rustsec.org/advisories/RUSTSEC-2024-0370.html
"RUSTSEC-2024-0370",
# Unmaintained (instant)
# https://rustsec.org/advisories/RUSTSEC-2024-0384.html
"RUSTSEC-2024-0384",
# Security: requires update in hickory-resolver, which is not available yet
# https://github.com/rust-lang/crates.io-index
"RUSTSEC-2024-0421"
]