Skip to content

Commit da56d92

Browse files
committed
tidy: add fluent dependencies to whitelist
Unfortunately, fluent comes with a lot of dependencies and these need to be added to the whitelist. Signed-off-by: David Wood <[email protected]>
1 parent 66f22e5 commit da56d92

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Diff for: src/tools/tidy/src/deps.rs

+19-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const EXCEPTIONS: &[(&str, &str)] = &[
3838
("bitmaps", "MPL-2.0+"), // cargo via im-rc
3939
("instant", "BSD-3-Clause"), // rustc_driver/tracing-subscriber/parking_lot
4040
("snap", "BSD-3-Clause"), // rustc
41+
("fluent-langneg", "Apache-2.0"), // rustc (fluent translations)
42+
("self_cell", "Apache-2.0"), // rustc (fluent translations)
4143
// FIXME: this dependency violates the documentation comment above:
4244
("fortanix-sgx-abi", "MPL-2.0"), // libstd but only for `sgx` target
4345
];
@@ -113,6 +115,9 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
113115
"filetime",
114116
"fixedbitset",
115117
"flate2",
118+
"fluent-bundle",
119+
"fluent-langneg",
120+
"fluent-syntax",
116121
"fortanix-sgx-abi",
117122
"generic-array",
118123
"getopts",
@@ -125,6 +130,8 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
125130
"if_chain",
126131
"indexmap",
127132
"instant",
133+
"intl-memoizer",
134+
"intl_pluralrules",
128135
"itertools",
129136
"itoa",
130137
"jobserver",
@@ -157,6 +164,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
157164
"pkg-config",
158165
"polonius-engine",
159166
"ppv-lite86",
167+
"proc-macro-hack",
160168
"proc-macro2",
161169
"psm",
162170
"punycode",
@@ -184,6 +192,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
184192
"ryu",
185193
"scoped-tls",
186194
"scopeguard",
195+
"self_cell",
187196
"semver",
188197
"serde",
189198
"serde_derive",
@@ -200,21 +209,29 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
200209
"tempfile",
201210
"termcolor",
202211
"termize",
212+
"thiserror",
213+
"thiserror-impl",
203214
"thorin-dwp",
204215
"thread_local",
205216
"time",
217+
"tinystr",
206218
"tinyvec",
207219
"tracing",
208220
"tracing-attributes",
209221
"tracing-core",
210222
"tracing-log",
211223
"tracing-subscriber",
212224
"tracing-tree",
225+
"type-map",
213226
"typenum",
214227
"unic-char-property",
215228
"unic-char-range",
216229
"unic-common",
217230
"unic-emoji-char",
231+
"unic-langid",
232+
"unic-langid-impl",
233+
"unic-langid-macros",
234+
"unic-langid-macros-impl",
218235
"unic-ucd-version",
219236
"unicode-normalization",
220237
"unicode-script",
@@ -228,7 +245,8 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
228245
"winapi-i686-pc-windows-gnu",
229246
"winapi-util",
230247
"winapi-x86_64-pc-windows-gnu",
231-
// this is a false-positive: it's only used by rustfmt, but because it's enabled through a feature, tidy thinks it's used by rustc as well.
248+
// this is a false-positive: it's only used by rustfmt, but because it's enabled through a
249+
// feature, tidy thinks it's used by rustc as well.
232250
"yansi-term",
233251
];
234252

0 commit comments

Comments
 (0)