Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cargo vendor without build or dev-dependencies #14654

Closed
piotr-sk opened this issue Oct 8, 2024 · 1 comment
Closed

support cargo vendor without build or dev-dependencies #14654

piotr-sk opened this issue Oct 8, 2024 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-vendor S-triage Status: This issue is waiting on initial triage.

Comments

@piotr-sk
Copy link

piotr-sk commented Oct 8, 2024

Problem

It would be nice to have an option to avoid vendoring dev-dependencies for those not interested in running tests on the crates.

Proposed Solution

To cover different use cases we can add a generic approach similar to the cargo tree option edges.

We can call this new option --dep-kinds (As proposed for cargo metadata in #10718) using the same proposed values:

  • all (default)
  • normal
  • build
  • dev
  • no-normal
  • no-build
  • no-dev

Notes

No response

@piotr-sk piotr-sk added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Oct 8, 2024
@weihanglo
Copy link
Member

Similar feature requests:

And seemingly a duplicate of #7065. Let's discuss it in a single place. Thank you!

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-vendor S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

3 participants