-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
deny.toml
191 lines (162 loc) · 4.72 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[graph]
targets = [
# The triple can be any string, but only the target triples built in to
# rustc (as of 1.40) can be checked against actual config expressions
#"x86_64-unknown-linux-musl",
# You can also specify which target_features you promise are enabled for a
# particular target. target_features are currently not validated against
# the actual valid features supported by the target architecture.
#{ triple = "wasm32-unknown-unknown", features = ["atomics"] },
]
all-features = false
no-default-features = false
[output]
feature-depth = 1
[advisories]
ignore = []
[licenses]
confidence-threshold = 0.8
exceptions = []
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"WTFPL",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"0BSD",
"Unicode-DFS-2016",
"BSL-1.0",
"PSF-2.0",
"OpenSSL",
]
[[licenses.clarify]]
crate = "libcst"
expression = "MIT AND PSF-2.0"
license-files = [{ path = "LICENSE", hash = 0x32ab1ee7 }]
[[licenses.clarify]]
crate = "libcst_derive"
expression = "MIT AND PSF-2.0"
license-files = [{ path = "LICENSE", hash = 0x32ab1ee7 }]
[[licenses.clarify]]
crate = "ring"
expression = "OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[[licenses.clarify]]
crate = "ruff_text_size"
expression = "MIT"
license-files = [{ path = "../../LICENSE", hash = 0x94cb9197 }]
[[licenses.clarify]]
crate = "uv-auth"
expression = "MIT AND Apache-2.0"
license-files = [
{ path = "../../LICENSE-MIT", hash = 0x94cb9197 },
{ path = "../../LICENSE-APACHE", hash = 0x94cb9197 },
]
[[licenses.clarify]]
crate = "uv-client"
expression = "MIT AND Apache-2.0"
license-files = [
{ path = "../../LICENSE-MIT", hash = 0x94cb9197 },
{ path = "../../LICENSE-APACHE", hash = 0x94cb9197 },
]
[[licenses.clarify]]
crate = "uv-macros"
expression = "MIT AND Apache-2.0"
license-files = [
{ path = "../../LICENSE-MIT", hash = 0x94cb9197 },
{ path = "../../LICENSE-APACHE", hash = 0x94cb9197 },
]
[[licenses.clarify]]
crate = "uv-normalize"
expression = "MIT AND Apache-2.0"
license-files = [
{ path = "../../LICENSE-MIT", hash = 0x94cb9197 },
{ path = "../../LICENSE-APACHE", hash = 0x94cb9197 },
]
[licenses.private]
ignore = false
registries = []
[bans]
multiple-versions = "deny"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
# List of crates to allow
allow = [
#{ crate = "[email protected]", reason = "you can specify a reason it is allowed" },
]
# List of crates to deny
deny = [
#{ crate = "[email protected]", reason = "you can specify a reason it is banned" },
# Wrapper crates can optionally be specified to allow the crate when it
# is a direct dependency of the otherwise banned crate
#{ crate = "[email protected]", wrappers = ["this-crate-directly-depends-on-ansi_term"] },
]
# List of features to allow/deny
# Each entry the name of a crate and a version range. If version is
# not specified, all versions will be matched.
[[bans.features]]
crate = "async-std"
# Features to not allow
deny = ["tokio2", "tokio3"]
# Features to allow
allow = ["tokio1", "async-global-executor"]
[[bans.features]]
crate = "reqwest"
# Features to not allow
deny = [
"default-tls",
"native-tls",
"native-tls-alpn",
"native-tls-vendored",
"dep:native-tls-crate",
"dep:tokio-native-tls",
]
# Features to allow
allow = [
"rustls",
"__rustls",
"__tls",
"hyper-rustls",
"rustls",
"rustls-pemfile",
"rustls-tls-webpki-roots",
"tokio-rustls",
"webpki-roots",
]
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
{ crate = "windows", reason = "not building for windows yet" },
{ crate = "windows-core" },
{ crate = "windows-sys" },
{ crate = "windows-targets" },
{ crate = "windows_aarch64_gnullvm" },
{ crate = "windows_aarch64_msvc" },
{ crate = "windows_i686_gnu" },
{ crate = "windows_i686_msvc" },
{ crate = "windows_x86_64_gnu" },
{ crate = "windows_x86_64_gnullvm" },
{ crate = "windows_x86_64_msvc" },
{ crate = "winreg" },
]
# Similarly to `skip` allows you to skip certain crates during duplicate
# detection. Unlike skip, it also includes the entire tree of transitive
# dependencies starting at the specified crate, up to a certain depth, which is
# by default infinite.
skip-tree = [
#"[email protected]", # will be skipped along with _all_ of its direct and transitive dependencies
#{ crate = "[email protected]", depth = 20 },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = ["https://github.com/charliermarsh/rs-async-zip?rev=1dcb40cfe1bf5325a6fd4bfcf9894db40241f585"]
[sources.allow-org]
github = ["elide-dev", "elide-tools"]