Cannot compile crate with cargo <1.71 if any crate in workspace depends on a crate that uses dep:
syntax
#15360
Labels
A-lockfile
Area: Cargo.lock issues
A-manifest
Area: Cargo.toml issues
A-workspaces
Area: workspaces
C-bug
Category: bug
S-needs-rfc
Status: Needs an RFC to make progress.
Problem
There is a backwards compatibility hazard with
dep:
syntax inCargo.toml
files.dep:
syntaxThis means that a crate that wants to maintain a low MSRV cannot be combined in a workspace with:
Steps
No response
Possible Solution(s)
Perhaps there could be a way to include crates in a workspace for the purpose of being accessible with
--package
and--workspace
being possible to set it as a default crate to compile, but without dependencies being unified with the rest of the workspace?Something like this would also be good for examples which I find generally work better as separate crates except for the fact that you then can't call them with
--example
.Notes
This can be worked around by not using workspaces and splitting the repo into separate Cargo projects. But this is not ideal.
Version
The text was updated successfully, but these errors were encountered: