What problem does it solve?
When a Rust item is exposed through multiple pub use facade modules, it becomes unclear which canonical definition is actually being re-exported and how far the public API is “disguised” behind intermediate hops.
Core Features & Use Cases
- Re-export chain tracing: Walks pub use re-export edges breadth-first (with cycle detection) up to 8 hops to show where an item is visible from each facade depth.
- Pub type masquerading detection (heuristic): Flags cases where a module declares a pub type alias whose name overlaps with a pub use binding in the same module, indicating an alias may be acting as a re-export disguised as a type.
- Facade hygiene auditing: Helps decide whether to keep long facade chains or simplify by dropping intermediate hops and flattening to the canonical target.
Quick Start
Build the hypergraph index for your workspace, then run re_export_chain for the canonical target you want to trace and review the hop-by-hop visibility links.