{"slug": "show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces", "title": "Show HN: Rust Doctor, a code health scanner for Cargo workspaces", "summary": "Rust Doctor, a new open-source code health scanner for Cargo workspaces, applies 62 curated rules to detect issues across security, correctness, reliability, performance, maintainability, and dependencies, scoring the workspace out of 100 and highlighting the three rules to fix first. The tool runs entirely locally with no network calls, uploads, or telemetry, and integrates with coding agents like Claude Code, Codex, and Cursor, as well as GitHub Actions for pull request reviews. It is dual-licensed under MIT OR Apache-2.0.", "body_md": "Your agent writes bad Rust, this catches it.\n\nRust Doctor scans your Cargo workspace with 62 curated rules and finds issues across security, correctness, reliability, performance, maintainability, and dependencies. It ends on a score out of 100 and the three rules worth fixing first.\n\nWorks on any Cargo workspace - a single binary crate, a library, a virtual workspace with dozens of members, you name it.\n\nEverything runs locally: no network, no upload, no telemetry. Inspect trusted local workspaces only, since Cargo runs the build scripts and procedural macros of whatever it compiles. [Limits →](https://rust-doctor.com/docs/limitations)\n\nRun this at your workspace root to get an audit.\n\n```\nnpx rust-doctor@latest\n```\n\nOnce you have an audit, install the skill so your coding agent fixes what it found. The skill teaches it which finding to repair first, how the score is capped, and what to look for in a file the scan already flagged.\n\n```\nnpx rust-doctor@latest skill install\n```\n\nThis writes `.claude/skills/rust-doctor/`\n\nfor Claude Code, from the binary rather than the network, and never over an existing skill.\n\nFor a one-off handoff instead, the report sends the findings straight to an agent, with the rules, their spans, and the scan scope already written into the prompt.\n\n```\nrust-doctor          # then pick \"Hand off to an agent\"\n```\n\nWorks with Claude Code, Codex, and Cursor, and copies the same context to your clipboard for any other agent.\n\nRust Doctor reviews every pull request and reports only the issues your change introduced, not your existing backlog. Set it up from the report menu:\n\n```\nrust-doctor          # then pick \"Add to GitHub Actions\"\n```\n\nThis writes `.github/workflows/rust-doctor.yml`\n\n, pinned to the version that wrote it, and never overwrites an existing file. The gate exits non-zero only when a diagnostic reaches the blocking level, which you change anytime with `--blocking`\n\n.\n\nYou can configure which rules to run and how to run them in `rust-doctor.toml`\n\n, or from the command line.\n\n```\nrust-doctor --rule clippy::unwrap_used=off\nrust-doctor --category performance=error\n```\n\nThe CLI reports nothing to anyone. No network call, no upload, no telemetry, no crash reporting, and nothing to opt out of. The binary carries no HTTP client and no analytics dependency.\n\nA `--json`\n\nreport stays inside your workspace and carries only:\n\n- Diagnostics: rule id, category, severity before and after policy, and a workspace-relative path with its span\n- Score: the number, its dimensions, the gate verdict, and the rules withheld from the ranking\n- Errors: which pass failed and why, when one did\n\nNo absolute path, no environment variable, no user data.\n\nMIT OR Apache-2.0, at your option. See [LICENSE-MIT](/arthjean/rust-doctor/blob/main/LICENSE-MIT) and\n[LICENSE-APACHE](/arthjean/rust-doctor/blob/main/LICENSE-APACHE).", "url": "https://wpnews.pro/news/show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces", "canonical_source": "https://github.com/arthjean/rust-doctor", "published_at": "2026-08-19 20:29:42+00:00", "updated_at": "2026-08-19 20:45:04.567751+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["Rust Doctor", "Claude Code", "Codex", "Cursor", "GitHub Actions", "Cargo"], "alternates": {"html": "https://wpnews.pro/news/show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces", "markdown": "https://wpnews.pro/news/show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces.md", "text": "https://wpnews.pro/news/show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces.txt", "jsonld": "https://wpnews.pro/news/show-hn-rust-doctor-a-code-health-scanner-for-cargo-workspaces.jsonld"}}