Rust Call Graph
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.
Run in terminal (recommended)
claude mcp add actionbook-rust-call-graph npx -- -y @trustedskills/actionbook-rust-call-graph
Or manually add to ~/.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.rsto show all entry points." - "Visualize the dependencies between
database.rsandapi_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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.