rust-lang / rust-lang/cargo

Request to list all missing crates rather than first one

Open
#8,632 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-dependency-resolution A-diagnostics C-feature-request S-needs-design
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Request to list all missing crates rather than exit on the first one.

A bespoke but not entirely unlikely use case:

As a company that has locally cached crates in a dir via some bespoke process. when the source code is updated and depends on different crate versions we run cargo check and get a the first missing crate/version. Then we repackage (somehow) to include that crate version, then we repeat until we have them all.

It would be nice if cargo listed all the missing crates/versions it needed but couldn't find before it exited.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the cargo check entry point and how it reports the first missing crate or version. Determine where dependency resolution stops on a missing package, then add coverage showing that all missing crates and versions are reported before exit. Done means cargo check lists the complete set of unavailable dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.