-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo vendor without dev-dependencies? #7065
Comments
It looks like An example using the
However, if we perform a
|
I am experiencing the same issue. Is there any hope to prioritize and fix this? It is suboptimal to commit dozens/hundreds of dependency folders that are effectively unused. |
It sounds great to save bandwidth by not vendoring any dev-dependencies. However, it will be frustrating when someone tries to run
I believe this is not true. IIRC, Cargo would vendor
As a result, dev-dependencies of your dependencies would not be downloaded. The only downloaded dev-dependencies are what you list in Cargo.toml of your package. |
I can confirm top level dev dependencies get vendored
|
This is also affecting dependency vendoring on Fuchsia via |
For those seeking a solution to this problem until the issue is resolved, consider using cargo-vendor-filterer. You can exclude development crates by utilizing the Please be aware that this solution is not perfect, as it initially vendors all folders and subsequently removes the development crates' code. An optimal solution will be implemented upon the completion of this feature. 😉 |
Is there a way to create a vendored sources without dev-dependencies?
The text was updated successfully, but these errors were encountered: