rust-call-graph

Generate Rust function call graphs using Language Server Protocol.

1|Updated Nov 27, 2025
One-click install
npx skills add https://github.com/flexisuite-org/FlexiSuite_Kernel --skill rust-call-graph-flexisuite-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-call-graph
Source: https://github.com/flexisuite-org/FlexiSuite_Kernel/tree/main/.agents/skills/rust-call-graph
Command: npx skills add https://github.com/flexisuite-org/FlexiSuite_Kernel --skill rust-call-graph-flexisuite-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers understand the complex relationships between functions in Rust code, making it easier to debug, refactor, and comprehend large codebases.

Core Features & Use Cases

  • Visualize Call Hierarchies: Generate interactive call graphs showing which functions call others and which functions are called by a specific function.
  • Depth Control: Specify how many levels of the call graph to explore.
  • Direction Control: Choose to view callers, callees, or both.
  • Use Case: When refactoring a critical function, use this Skill to see all the places it's called from and all the functions it depends on, ensuring no unintended side effects.

Quick Start

Show the call graph for the 'process_request' function in your Rust project.

Frequently Asked Questions about rust-call-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize a Rust function call graph for refactoring?

You can visualize a Rust function call graph by analyzing incoming and outgoing function calls to see dependencies. This clarifies call hierarchies, ensuring safe refactoring without unintended side effects.

How do I generate a call hierarchy diagram up to a specific depth in Rust?

Generate a call hierarchy diagram by specifying the exploration depth for recursive function calls. This controls how many levels of callers and callees are included in the visualization.

Can I use LSP to show both callers and callees for a Rust function?

Yes, you can use LSP to show both callers and callees for a Rust function. Direction control allows you to view incoming calls, outgoing calls, or both simultaneously.

What is the best way to perform impact analysis on a Rust codebase?

Performing impact analysis on a Rust codebase is best done by visualizing function call graphs. Identifying all upstream callers and downstream callees helps assess the blast radius of changes.

Do I need a Language Server Protocol setup to analyze Rust function calls?

Yes, a Language Server Protocol setup is required to analyze Rust function calls. The tool leverages LSP capabilities to recursively explore code and extract call relationships.