Expand description
Merging multiple CrateDatas from different compilation targets into one.
StructsΒ§
- Crate
Merger π - IdRef
Mapper πVisitor - Visitor that remaps references to the given items.
- Item
Deduplicator π - Orchestrates deduplication of items across compilation targets.
- Target
Group π - A set of items that share the same base name and item kind. These are candidates for merging into a single cross-target item.
- Target
Group Id
EnumsΒ§
- Merge
Decision π - How a
TargetGroupshould be merged.
FunctionsΒ§
- merge
- Merge per-target
CrateDatas into a singleCrateData. - normalize_
item π - Normalize an item for cross-target comparison.
- normalize_
name_ πfor_ grouping - Normalize a name for grouping across targets; returns the target.
- strip_
unstable_ πattributes - Strip attributes such as
rustc_diagnostic_itemwhose arguments can vary across targets in a way that doesnβt matter to us.