-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeny.toml
More file actions
113 lines (98 loc) · 3.61 KB
/
deny.toml
File metadata and controls
113 lines (98 loc) · 3.61 KB
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
107
108
109
110
111
112
113
[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 ####
{ name = "md5", reason = "Use `md-5` instead, which is part of the RustCrypto ecosystem" },
{ name = "native-tls", reason = "We use rustls throughout the project" },
{ name = "serde_yaml", reason = "Use serde_yaml_ng as replacement" },
### 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 },
# TODO: Waiting for old version of tonic to go away
# { 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 },
# TODO: Too many versions between alloy, aws-sdk, reqwest etc.
# { name = "rustls", deny-multiple-versions = true },
{ name = "setty", deny-multiple-versions = true },
{ name = "sqlx", deny-multiple-versions = true },
{ name = "tokio", deny-multiple-versions = true },
{ name = "tonic", deny-multiple-versions = true },
]
[licenses]
allow = [
"0BSD",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"bzip2-1.0.6",
"CC0-1.0",
"CDLA-Permissive-2.0",
"ISC",
"MIT",
"MIT-0",
"MPL-2.0",
"OpenSSL",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
private = { ignore = true }
[[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"] }
[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 (paste)
# https://rustsec.org/advisories/RUSTSEC-2024-0436
"RUSTSEC-2024-0436",
# Unmaintained (backoff)
# https://rustsec.org/advisories/RUSTSEC-2025-0012
"RUSTSEC-2025-0012",
# Unmaintained (instant)
# https://rustsec.org/advisories/RUSTSEC-2024-0384
"RUSTSEC-2024-0384",
# Unmaintained (rustls-pemfile)
# https://rustsec.org/advisories/RUSTSEC-2025-0134
"RUSTSEC-2025-0134",
# Unsound (lru)
# https://rustsec.org/advisories/RUSTSEC-2026-0002
"RUSTSEC-2026-0002",
]