Allow separating implicit dependencies in cargo vendor #11178
Labels
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.
Problem
When viewing vendored crates manually, I am most interested in crates I've explicitly added as a dependency.
It would be convenient if explicit dependencies were in the top level vendor folder, and implicit dependencies were in a subfolder.
Since cargo already supports multiple sources, it seems at first glance like this wouldn't require any major changes to support
Proposed Solution
A new option for cargo vendor (maybe
--organize-implicit
)This option would
_deps
) for any dependencies not explicitly referenced in cargo.toml_deps
directory as a package sourceNotes
Possible naming clash if e.g. a package named
_deps
were created (none exist now)The text was updated successfully, but these errors were encountered: