Skip to content

Add cargo doctor #9341

@Zerotask

Description

@Zerotask

Describe the problem you are trying to solve

Rust consists of many tools and at the moment there is no single command to check if everything is fine and up to date.

Describe the solution you'd like

Similar to npm's doctor command there could be a cargo doctor command which checks the whole ecosystem if everything is working as expected and is up to date.
This checks could include:

  • rustc
  • cargo
  • cargo binaries
  • ping crates.io
  • configuration / env / paths
  • caches etc.

cargo doctor could also give specific solutions, e. g. if rustc is outdated, the recommendation would be:
run rustup update to get the newest version.

Here's an example of npm doctor:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-subcommandArea: new subcommandC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions