Rust Call Graph
Generates Rust code call graphs from source files to visualize function dependencies and understand program flow.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rust-call-graph npx -- -y @trustedskills/rust-call-graph
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rust-call-graph": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rust-call-graph"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The rust-call-graph skill enables AI agents to analyze and visualize function call relationships in Rust codebases. It can parse source files, identify dependencies between functions, and generate a structured representation of how functions interact within the project.
When to use it
- To understand complex code structures during debugging or refactoring
- For generating documentation that maps out function interactions
- When optimizing performance by identifying frequently called functions
- During code reviews to trace execution paths across modules
Key capabilities
- Parses Rust source files for function definitions and calls
- Builds a call graph representing dependencies between functions
- Supports visualization of the graph in various formats (e.g., DOT, JSON)
- Identifies cyclic dependencies or unused functions
Example prompts
- "Generate a call graph for the
src/lib.rsfile." - "Show me all functions called by
main()in this project." - "Visualize the function dependencies as a DOT file."
Tips & gotchas
- Ensure that the Rust code is well-formed and compiled to avoid parsing errors.
- Large projects may require additional memory or processing time for accurate graph generation.
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.