Update cargo dependencies based on rust-version
#26060
epage
started this conversation in
Suggest an Idea
Replies: 1 comment 4 replies
-
In Renovate terminology we need to do this:
The above 3 points can be converted into separate feature requests as necessary. These combined would then enable us to support I think users will need to take care of the exceptions you mention sing packageRules. Further:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
Packages in the rust community can specify their minimum supported rust version via
Cargo.toml
spackage.rust-version
field. In this case, users usually want their version requirements inCargo.toml
and the pinned versions inCargo.lock
to be compatible withpackage.rust-version
.Exceptions
Cargo.lock
to verify everything is compatiblerust-version
srust-version
Things can get a little messy when a
[workspace]
has multiplerust-version
s in it, likecargo
itself (since the field is on a per-package basis).They can also specify their development version via
rust-toolchain.toml
files. In these cases, version requirements and pinned versions should always be compatible.Resources
rust-version
(if set)Cargo.toml
in the.crate
filecargo update --breaking
flag (replacing third-partycargo upgrade
) will pick compatible versions (may be turned off)Beta Was this translation helpful? Give feedback.
All reactions