What problem does it solve?
Identifies and triages Rust global mutable state by auditing every workspace static item whose HIR type matches common global singleton patterns, so you can assess safety and architectural load.
Core Features & Use Cases
- Workspace-wide type-aware matching: Finds local
static items matching static mut, LazyLock<...>, OnceLock<...>, and OnceCell<...> and reports where they live and what types they actually are.
- Fan-in impact analysis: For each finding, quantifies how many call-sites or dependencies use the global via
who_uses / who_uses_summary, highlighting removal difficulty and architectural coupling.
- Review-ready source context: Pulls the relevant source file region around each finding span using
read_file_content so you can inspect initialization and surrounding documentation.
Quick Start
Build the workspace hypergraph, run the global mutable state audit for your workspace path, and then inspect each finding’s file and span to decide whether it needs DI refactoring or safety review.