Rust Doctor

•
23
•

Scan, score, and fix Rust code by unifying multiple analysis tools and custom rules into a single health score.

Rust Doctor provides a comprehensive, one-command health check for your Rust project. It scans for security, performance, correctness, architecture, and dependency issues by integrating `cargo clippy`, `cargo-audit`, `cargo-deny`, `cargo-geiger`, and 19 custom AST rules. The results are aggregated into a single, actionable 0–100 health score. Available as a CLI, library crate, npm package, GitHub Action, and an MCP server, it seamlessly integrates with your terminal, CI/CD pipelines, and AI coding agents like Claude Code or Cursor, offering deep analysis and automated fixes.

主要功能

01Unifies 700+ Clippy lints and 19 custom AST rules for comprehensive code analysis
02Integrates external tools like `cargo-audit`, `cargo-deny`, `cargo-geiger`, and `cargo-machete` for supply-chain security
03Generates a single 0–100 health score across security, reliability, maintainability, performance, and dependencies
04Offers CLI, library, npm package, GitHub Action, and MCP server for flexible deployment and AI agent integration
05Supports diff mode for fast CI feedback, inline suppression, configurable rules, and SARIF/JSON output
069 GitHub stars

使用案例

01Automating code quality, security, and dependency checks in CI/CD pipelines
02Integrating comprehensive static analysis and health scoring into AI coding agents
03Performing quick health checks or deep audits on Rust projects to identify actionable issues