[Request] Support shared dependency declaration in virtual manifests #5471
Labels
A-crate-dependencies
Area: [dependencies] of any kind
A-workspaces
Area: workspaces
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Given a virtual manifest like so:
It would be useful to declare dependencies that are shared between members in a central place (such as this manifest):
When building if we are looking for crate
serde
in, for example, packagea
buta/Cargo.toml @ dependencies
does not listserde
we would look in the virtual manifest that includesa
as a member (if there is one).This will no doubt complicate dependency resolution somewhat but I do not know to what extent so if it is too crazy please feel free to close this ticket.
The idea for this is that, at least in my experience, workspace members have certain shared deps that you want to stay in sync and this makes that easier to express.
The text was updated successfully, but these errors were encountered: