-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Set MSRV of home crate to 1.71 #15361
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
Conversation
r? @weihanglo rustbot has assigned @weihanglo. Use |
77f446e
to
13b9ee2
Compare
Signed-off-by: Nico Burns <[email protected]>
13b9ee2
to
a27f262
Compare
Please see the discussion in #13270. Since then, the MSRV-aware resolver has been released as well which won't help if your development version is your MSRV but those cases are likely rare. |
@epage I don't see how the MSRV-aware resolver helps here (until the MSRV of one's crate is greater than 1.84). I could pin a lower version of each dependency using Am I missing something? I would also ask: is there really a meaningful cost to cargo of doing this? No code changes are required. It's literally just a case of not setting the |
The interface for enabling the MSRV-aware resolver was intentionally designed to not require an MSRV bump. It only requires that you update your development version of Cargo and use that when generating a
Doing that, especially in libraries, is also harmful to the ecosystem as it can cause incompatibilities between packages.
Yes, the MSRV experience for pre-MSRV-aware resolver is not great. This is why I put so much emphasis on getting that work done.
This is not a new argument and it is not productive to re-litigate decisions with each new person who is concerned over something. I'd recommend looking over the discussion in #13270 and our MSRV documentation which we wrote after that PR |
What does this PR try to resolve?
Despite not being intended for external use, 667 crates depend directly on
home
. It would therefore be nice if it could be more conservative with MSRV than the other crates in this repo. This crate will compile with Rust 1.71 without any code changes, so I've set it to that.Lower than 1.71 is blocked by #15360 (this crate could compile with lower MSRV than that, but dependencies of crates in this workspace use
dep:
syntax so cargo doesn't even get that far)