rust-lang / rust-lang/cargo

cargo vendor should have a separate option to choose where to output the .cargo/config

Open
#7,280 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-documenting-cargo-itself C-feature-request Command-vendor S-needs-design
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Currently, the choice is between:

cargo vendor path

printing out

Downloading crate
...
Vendoring crate ...
To use vendored sources, add this to your .cargo/config for this project:

[source.crates-io]
replace-with = "vendored-sources"

...

and

cargo vendor --quiet path

which outputs... nothing. At all.

There should be a way to reliably get that .cargo/config snippet somehow.

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 reading the cargo vendor command and its existing --quiet handling to find where the configuration snippet is generated or suppressed. Define the new output-selection option and verify that it reliably emits the .cargo/config snippet without depending on general command verbosity.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.