Rust Call Graph
Visualize function call relationships using LSP call hierarchy.
Usage
Options:
--depth N: How many levels to traverse (default: 3)--direction:in(callers),out(callees),both
Examples:
/rust-call-graph process_request- Show both callers and callees/rust-call-graph handle_error --direction in- Show only callers/rust-call-graph main --direction out --depth 5- Deep callee analysis
LSP Operations
1. Prepare Call Hierarchy
Get the call hierarchy item for a function.
2. Incoming Calls (Who calls this?)
3. Outgoing Calls (What does this call?)
Workflow
Output Format
Incoming Calls (Who calls this?)
Outgoing Calls (What does this call?)
Bidirectional (Both)
Analysis Insights
After generating the call graph, provide insights:


