Rust · rustdoc
Auto-generate Rust rustdoc comments with AI
Wright AI writes rustdoc-style `///` comments for undocumented Rust functions and structs — including Panics, Errors, and Examples sections — then catches drift when signatures change.
See it in action
Before and after — rustdoc style
How it works
More than a docstring generator
⚡
Call graph context
Wright builds a dependency graph before generating. It reads what calls your Rust function and what it calls — so docs describe purpose, not just mechanics.
📊
Coverage tracking
Know the exact percentage of documented functions across every file. Set a minimum threshold and enforce it in CI.
🔍
Drift detection
When a function signature changes, Wright flags the stale docstring automatically — as a VS Code warning and a CI failure.
🔌
MCP for AI tools
Exposes your indexed docs to Claude Code, Cursor, and Copilot via MCP so they always have live context about your codebase.
Comparison
How Wright differs from alternatives
cargo doc
Renders existing rustdoc comments into HTML — does not write them for you.
rust-analyzer hints
Shows inlay hints for types and parameters inline. Does not generate doc comments.
ChatGPT / Claude (manual)
Generates one docstring at a time when asked. No batch mode, no coverage tracking, no CI gate.
Start documenting your Rust codebase
Free VS Code extension · CLI · GitHub Action · MCP server. No credit card required.