rust-call-graph

Visualizes Rust function call graphs using LSP call hierarchy data.

51|6|Updated Mar 28, 2019
One-click install
npx skills add https://github.com/Mte90/dotfiles --skill rust-call-graph-mte90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-call-graph
Source: https://github.com/Mte90/dotfiles/tree/main/.config/opencode/skills/rust-call-graph
Command: npx skills add https://github.com/Mte90/dotfiles --skill rust-call-graph-mte90

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes 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 codebases.

Core Features & Use Cases

  • Call Hierarchy Visualization: Generates interactive call graphs showing callers and callees of a specific function.
  • Depth Control: Allows users to specify how many levels of the call graph to explore.
  • Direction Specification: Enables focusing on incoming calls (who calls a function) or outgoing calls (what a function calls).
  • Use Case: When debugging a performance issue in a Rust application, use this Skill to trace the execution path of a critical function and identify bottlenecks or unexpected dependencies.

Quick Start

Show the call graph for the 'process_request' function with a depth of 5, showing both incoming and outgoing calls.

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?

You can visualize a Rust function call graph by using this Skill to extract call hierarchy information via the Language Server Protocol (LSP) and generate interactive visual graphs for code comprehension and debugging.

Can I trace incoming callers and outgoing callees for a Rust function?

Yes, you can trace incoming callers, outgoing callees, or both simultaneously. This Skill allows you to specify the direction to focus on specific code impact analysis or execution paths.

Does this call graph visualization support depth control for large Rust codebases?

Yes, it supports configurable depth control, allowing you to specify exactly how many levels of the Rust call graph to explore so you can manage complexity in large codebases.

Do I need an LSP server to analyze Rust call hierarchies?

Yes, this Skill relies on Language Server Protocol (LSP) call hierarchy information to map and visualize the relationships between functions in your Rust projects.

What is the best way to debug a performance bottleneck in a Rust execution path?

The best way is to use this Skill to trace the execution path of a critical function by generating its call graph, identifying unexpected dependencies, and pinpointing performance bottlenecks.