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 <david.wood@huawei.com>
This commit is contained in:
David Wood 2022-04-03 05:05:36 +01:00
parent 66f22e550b
commit da56d92037

View File

@ -38,6 +38,8 @@ const EXCEPTIONS: &[(&str, &str)] = &[
("bitmaps", "MPL-2.0+"), // cargo via im-rc
("instant", "BSD-3-Clause"), // rustc_driver/tracing-subscriber/parking_lot
("snap", "BSD-3-Clause"), // rustc
("fluent-langneg", "Apache-2.0"), // rustc (fluent translations)
("self_cell", "Apache-2.0"), // rustc (fluent translations)
// FIXME: this dependency violates the documentation comment above:
("fortanix-sgx-abi", "MPL-2.0"), // libstd but only for `sgx` target
];
@ -113,6 +115,9 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"filetime",
"fixedbitset",
"flate2",
"fluent-bundle",
"fluent-langneg",
"fluent-syntax",
"fortanix-sgx-abi",
"generic-array",
"getopts",
@ -125,6 +130,8 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"if_chain",
"indexmap",
"instant",
"intl-memoizer",
"intl_pluralrules",
"itertools",
"itoa",
"jobserver",
@ -157,6 +164,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"pkg-config",
"polonius-engine",
"ppv-lite86",
"proc-macro-hack",
"proc-macro2",
"psm",
"punycode",
@ -184,6 +192,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"ryu",
"scoped-tls",
"scopeguard",
"self_cell",
"semver",
"serde",
"serde_derive",
@ -200,9 +209,12 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"tempfile",
"termcolor",
"termize",
"thiserror",
"thiserror-impl",
"thorin-dwp",
"thread_local",
"time",
"tinystr",
"tinyvec",
"tracing",
"tracing-attributes",
@ -210,11 +222,16 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"tracing-log",
"tracing-subscriber",
"tracing-tree",
"type-map",
"typenum",
"unic-char-property",
"unic-char-range",
"unic-common",
"unic-emoji-char",
"unic-langid",
"unic-langid-impl",
"unic-langid-macros",
"unic-langid-macros-impl",
"unic-ucd-version",
"unicode-normalization",
"unicode-script",
@ -228,7 +245,8 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
"winapi-i686-pc-windows-gnu",
"winapi-util",
"winapi-x86_64-pc-windows-gnu",
// 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.
// 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.
"yansi-term",
];