Skip to content
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

Lock MSRV to 1.60 and validate in CI #362

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

MarijnS95
Copy link
Member

CC @kchibisov

Prevent inadvertently bumping MSRV in PRs by checking against MSRV in the CI, to disallow any large bumps without rationale. Rust 1.60 is 7 months old at the time of writing, and also required by winit which uses android-ndk-rs, hence must be compatible with it.

This does not mean that we cannot bump MSRV at all, but we must remain a tad conservative; at the same time setting rust-version in the manifest provides everyone on Rust 1.56 and higher a helpful error message when their version is lower than what we require.

Prevent inadvertently bumping MSRV in PRs by checking against MSRV in
the CI, to disallow any large bumps without rationale.  Rust 1.60 is 7
months old at the time of writing, and also required by `winit` which
uses `android-ndk-rs`, hence must be compatible with it.

This does not mean that we cannot bump MSRV at all, but we must remain a
tad conservative; at the same time setting [`rust-version`] in the
manifest provides everyone on Rust 1.56 and higher a helpful error
message when their version is lower than what we require.

[`rust-version`]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
Git history suggests that `quick-xml` backed out of an (un?)intentional
MSRV bump and is now back at Rust 1.46; well below our MSRV needed for
`winit`.
@MarijnS95 MarijnS95 merged commit 107f03e into rust-mobile:master Nov 21, 2022
@MarijnS95 MarijnS95 deleted the lock-and-validate-msrv branch November 21, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants