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

[ci] Separately track MSRV and MWRV #861

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[ci] Separately track MSRV and MWRV #861

wants to merge 1 commit into from

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Feb 10, 2024

MWRV stands for "minimum working Rust version" (a term we invent here). It is the minimum version of the toolchain that we test with in CI. We maintain (and test) the invariant that MSRV >= MWRV so that we know at all times that our code is compatible with our published MSRV.

The reason for doing this is so that we can make progress towards lowering our MSRV without painting ourselves into a corner. We treat MSRV bumps as breaking changes, so if we were to publish a particular MSRV and then later discover a problem, we wouldn't be able to revert to a previously-published, higher MSRV. By tracking MWRV separately, we can ensure that we're making progress while still leaving ourselves wiggle room to revert changes so long as those reversions are compatible with our published MSRV. Once we have let a particular MWRV bake long enough, we can lower the published MSRV to match.

Closes #807

MWRV stands for "minimum working Rust version" (a term we invent here).
It is the minimum version of the toolchain that we test with in CI. We
maintain (and test) the invariant that MSRV >= MWRV so that we know at
all times that our code is compatible with our published MSRV.

The reason for doing this is so that we can make progress towards
lowering our MSRV without painting ourselves into a corner. We treat
MSRV bumps as breaking changes, so if we were to publish a particular
MSRV and then later discover a problem, we wouldn't be able to revert to
a previously-published, higher MSRV. By tracking MWRV separately, we can
ensure that we're making progress while still leaving ourselves wiggle
room to revert changes so long as those reversions are compatible with
our published MSRV. Once we have let a particular MWRV bake long enough,
we can lower the published MSRV to match.

Closes #807
@joshlf
Copy link
Member Author

joshlf commented Feb 10, 2024

@jswrenn I've confirmed locally that this doesn't have the same bug as #810.

@joshlf joshlf disabled auto-merge February 10, 2024 05:47
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.

Distinguish between MSRV and minimum *working* Rust version
1 participant