Skip to content

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

@glandium

Description

@glandium

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documenting-cargo-itselfArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-vendorS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions