rust-call-graph

Generate ASCII call graphs for Rust functions using LSP call hierarchy.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mberetvas/dbt-migrator --skill rust-call-graph-mberetvas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-call-graph
Source: https://github.com/mberetvas/dbt-migrator/tree/main/.github/skills/rust-call-graph
Command: npx skills add https://github.com/mberetvas/dbt-migrator --skill rust-call-graph-mberetvas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Visualize Rust function call graphs to quickly understand code relationships and call flows across modules using LSP.

Core Features & Use Cases

  • Visual call graphs for Rust functions via LSP call hierarchy.
  • Explore incoming (callers) and outgoing (callees) relationships with depth control.
  • Generate ASCII-style call graphs for quick documentation and review.

Quick Start

Analyze a Rust project and run the call-graph command against a target function to see its callers and callees.

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 across modules?

Yes, Rust call graph analysis supports depth-bounded exploration, letting you control how many levels of incoming callers or outgoing callees the LSP query traverses to prevent overly large graphs.

How does LSP call hierarchy work for analyzing Rust code?

LSP call hierarchy queries a Rust Language Server to prepare item requests, then maps which functions call a target and which functions the target calls, returning structured caller and callee relationships.

Can I trace incoming and outgoing calls across different Rust crates?

Yes, LSP-based call graph visualization analyzes Rust projects to map which functions call which across modules and crates, tracing both incoming callers and outgoing callees with depth control.

What is the best way to map Rust function callers and callees for documentation?

Generating ASCII-style call graphs via LSP provides a quick textual format for documenting Rust call flows. You run a call-graph command against a target function to capture its call relationships.

Do I need a Rust Language Server to generate call graphs?

Yes, an LSP implementation is required. The workflow prepares call hierarchies through the Rust Language Server protocol to query and retrieve the incoming and outgoing call relationships needed for visualization.