Rust Doctor: know if your Rust code is actually healthy.

A code health scanner for Cargo workspaces. Find issues across security, performance, correctness, architecture, and dependencies.

View GitHub
Terminal - rust-doctor
~
npx rust-doctor@latest
rust-doctorBot
src/db/pool.rs
27let url = "postgres://admin:••••@db/prod";
28let pool = PgPool::connect(url).await?;

rust-doctorrepo::hardcoded_credential(error)

Move the credentials to an environment variable and load them at runtime before opening the pool.

View rule onrepo::hardcoded_credential

Reviews every pull request

Every pull request gets a detailed report on the exact lines that introduced an issue, each one explaining the problem in plain English and suggesting a concrete fix you can apply right away.

Blocks regressions before they merge

Run the same scanner in GitHub Actions, publish its report, and fail the check at the severity threshold your repository sets.

Read the CI docs