Installation
Install rust-doctor via npm, cargo, or use it directly with npx.
npm (recommended)
The npm package bundles a pre-built binary — no Rust toolchain required:
npm install -g rust-doctorOr run it directly without installing:
npx -y rust-doctor@latest .Cargo
Install from crates.io (requires the Rust toolchain):
cargo install rust-doctorOptional external tools
rust-doctor integrates with several cargo plugins for deeper analysis. These are optional — if a tool is missing, that pass is skipped with an info diagnostic.
| Tool | Purpose | Install |
|---|---|---|
| cargo-audit | CVE detection in dependencies | cargo install cargo-audit |
| cargo-deny | License and advisory checks | cargo install cargo-deny |
| cargo-geiger | Unsafe code usage metrics | cargo install cargo-geiger |
| cargo-machete | Unused dependency detection | cargo install cargo-machete |
| cargo-semver-checks | Semver breaking change detection | cargo install cargo-semver-checks |
Install all missing tools at once:
rust-doctor --install-depsVerify installation
rust-doctor --version