Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions src/bootstrap/src/utils/proc_macro_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,46 @@ pub static CRATES: &[&str] = &[
"anyhow",
"askama_derive",
"askama_parser",
"basic-toml",
"basic_toml",
"bitflags",
"block-buffer",
"block_buffer",
"bumpalo",
"cfg-if",
"cfg_if",
"cpufeatures",
"crypto-common",
"crypto_common",
"darling",
"darling_core",
"derive_builder_core",
"digest",
"equivalent",
"fluent-bundle",
"fluent-langneg",
"fluent-syntax",
"fluent_bundle",
"fluent_langneg",
"fluent_syntax",
"fnv",
"foldhash",
"generic-array",
"generic_array",
"glob",
"hashbrown",
"heck",
"id-arena",
"id_arena",
"ident_case",
"indexmap",
"intl-memoizer",
"intl_memoizer",
"intl_pluralrules",
"itoa",
"leb128fmt",
"libc",
"log",
"memchr",
"minimal-lexical",
"minimal_lexical",
"nom",
"pest",
"pest_generator",
"pest_meta",
"prettyplease",
"proc-macro2",
"proc_macro2",
"quote",
"rustc-hash",
"rustc_hash",
"ryu",
"self_cell",
"semver",
Expand All @@ -61,25 +61,25 @@ pub static CRATES: &[&str] = &[
"synstructure",
"thiserror",
"tinystr",
"type-map",
"type_map",
"typenum",
"ucd-trie",
"unic-langid",
"unic-langid-impl",
"unic-langid-macros",
"unicode-ident",
"unicode-xid",
"ucd_trie",
"unic_langid",
"unic_langid_impl",
"unic_langid_macros",
"unicode_ident",
"unicode_xid",
"version_check",
"wasm-bindgen-macro-support",
"wasm-bindgen-shared",
"wasm-encoder",
"wasm-metadata",
"wasm_bindgen_macro_support",
"wasm_bindgen_shared",
"wasm_encoder",
"wasm_metadata",
"wasmparser",
"winnow",
"wit-bindgen-core",
"wit-bindgen-rust",
"wit-component",
"wit-parser",
"wit_bindgen_core",
"wit_bindgen_rust",
"wit_component",
"wit_parser",
"yoke",
"zerofrom",
"zerovec",
Expand Down
11 changes: 9 additions & 2 deletions src/tools/tidy/src/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,15 @@ fn check_proc_macro_dep_list(root: &Path, cargo: &Path, bless: bool, check: &mut
// Remove the proc-macro crates themselves
proc_macro_deps.retain(|pkg| !is_proc_macro_pkg(&metadata[pkg]));
// Sort and deduplicate the crate names.
let proc_macro_deps =
proc_macro_deps.into_iter().map(|dep| metadata[dep].name.as_ref()).collect::<BTreeSet<_>>();
// Cargo package names may contain `-`, but will normalize these to `_` before passing to rustc.
// As bootstrap parses the `--crate-name` flag, use the name of the actual lib target which has
// been normalized.
let proc_macro_deps = proc_macro_deps
.into_iter()
.filter_map(|dep| {
metadata[dep].targets.iter().find_map(|target| target.is_lib().then_some(&target.name))
})
.collect::<BTreeSet<_>>();

let expected = {
use std::fmt::Write;
Expand Down
Loading