Skip to content

Installation

Run rust-doctor with npx, or install it from source.

The npm package is a launcher: it resolves the prebuilt binary for your platform and executes it. Nothing to install.

npx -y rust-doctor@latest .

To keep it around:

npm install -g rust-doctor

Prebuilt binaries ship for Linux, macOS and Windows on x64, plus Linux and macOS on arm64. Node 20.19 or later.

#From source

git clone https://github.com/arthjean/rust-doctor
cd rust-doctor
cargo build --release

The binary lands in target/release/rust-doctor. Requires Rust 1.95 or later.

cargo install rust-doctor does not install this tool. That name on crates.io serves an unrelated 0.2.0 published from a retired account, and this crate is not published to crates.io.

#What the scan needs

Rust Doctor runs cargo clippy inside the workspace it inspects, so the workspace needs a Rust toolchain with the clippy component. Everything else is native: the four other producers parse source text, read manifests, or ask git what it tracks, and build nothing.

Without clippy the scan still reports, but it says so, and the score loses its authoritative flag rather than pretending the missing pass found nothing.

#Verify

rust-doctor --version