Rust Call Graph

🌐Community
by actionbook · vlatest · Repository

Analyzes Rust code call graphs within Actionbook projects to identify dependencies and potential optimization opportunities.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add actionbook-rust-call-graph npx -- -y @trustedskills/actionbook-rust-call-graph
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "actionbook-rust-call-graph": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/actionbook-rust-call-graph"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The rust-call-graph skill generates visual call graphs directly from Rust source code, helping developers understand function dependencies and execution flows. It processes .rs files to map out how different parts of a program interact without requiring manual tracing.

When to use it

  • Analyze complex legacy Rust codebases to identify tightly coupled modules before refactoring.
  • Debug performance bottlenecks by visualizing the sequence of function calls during specific operations.
  • Onboard new team members by providing an immediate overview of the project's architectural structure.
  • Validate that recent changes in one module did not inadvertently break dependencies in others.

Key capabilities

  • Parses Rust source files to extract function definitions and call sites.
  • Constructs a directed graph representing the hierarchy and relationships between functions.
  • Renders interactive visualizations showing parent-child relationships in the call stack.
  • Handles both simple scripts and large-scale library structures efficiently.

Example prompts

  • "Generate a call graph for src/main.rs to show all entry points."
  • "Visualize the dependencies between database.rs and api_handler.rs."
  • "Create a call graph highlighting functions that are called more than five times in this crate."

Tips & gotchas

Ensure your Rust project is clean and free of syntax errors before running the analysis, as parsing failures can halt graph generation. For very large projects with thousands of functions, consider limiting the scope to specific modules to keep the visualization readable.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
actionbook
Installs
34

🌐 Community

Passed automated security scans.