Rust Doctor, a code health scanner for Cargo workspaces
Source
github.com
Author
arthurjean
Date
Context
Rust Doctor turns a Rust code scan into a repair order. Its 62 rules inspect a Cargo workspace, then produce a score and identify three rules to address first. The report can pass findings, source locations and scan scope to a coding AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.Full definition →, giving it specific problems to repair. In automated pull-request checks, it reports newly introduced issues and uses a configurable severity threshold to decide whether to block the change. These are the workflows described in the project README.
The scanner runs locally, but its authors restrict its use to trusted projects because Cargo can execute build scripts and procedural macros. Keeping code on the machine does not make inspecting an unfamiliar repository harmless.
Terms in this piece · Glossary
AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.