Remove individual crate checks for bootstrap in tidy

This duplicates a lot of checking, and doesn't seem particularly useful -
these are already caught in review.

Note that this still keeps the license check.
This commit is contained in:
Joshua Nelson 2022-06-22 00:31:23 -05:00
parent 345eb14f6c
commit 81482e67cb

View File

@ -293,82 +293,6 @@
"winapi-x86_64-pc-windows-gnu",
];
const PERMITTED_BOOTSTRAP_DEPENDENCIES: &[&str] = &[
"aho-corasick",
"autocfg",
"ansi_term",
"block-buffer",
"bitflags",
"bstr",
"core-foundation-sys",
"cc",
"cfg-if",
"crossbeam-utils",
"cmake",
"cpufeatures",
"crossbeam-channel",
"crossbeam-deque",
"crossbeam-epoch",
"crypto-common",
"ctor",
"diff",
"digest",
"either",
"filetime",
"fnv",
"getopts",
"generic-array",
"globset",
"hermit-abi",
"hex",
"ignore",
"itoa",
"lazy_static",
"libc",
"log",
"lzma-sys",
"memchr",
"memoffset",
"ntapi",
"num_cpus",
"once_cell",
"opener",
"output_vt100",
"pkg-config",
"pretty_assertions",
"proc-macro2",
"quote",
"rayon",
"rayon-core",
"redox_syscall",
"regex",
"regex-automata",
"regex-syntax",
"ryu",
"same-file",
"scopeguard",
"serde",
"serde_derive",
"serde_json",
"sha2",
"syn",
"sysinfo",
"tar",
"thread_local",
"toml",
"typenum",
"unicode-ident",
"unicode-width",
"version_check",
"walkdir",
"winapi",
"winapi-i686-pc-windows-gnu",
"winapi-util",
"winapi-x86_64-pc-windows-gnu",
"xattr",
"xz2",
];
const FORBIDDEN_TO_HAVE_DUPLICATES: &[&str] = &[
// These two crates take quite a long time to build, so don't allow two versions of them
// to accidentally sneak into our dependency graph, in order to ensure we keep our CI times
@ -422,13 +346,6 @@ pub fn check(root: &Path, cargo: &Path, bad: &mut bool) {
let metadata = t!(cmd.exec());
let runtime_ids = HashSet::new();
check_exceptions(&metadata, EXCEPTIONS_BOOTSTRAP, runtime_ids, bad);
check_dependencies(
&metadata,
"bootstrap",
PERMITTED_BOOTSTRAP_DEPENDENCIES,
&["bootstrap"],
bad,
);
}
/// Check that all licenses are in the valid list in `LICENSES`.