RFC: Minimum Supported Rust Version by newpavlov · Pull Request #2495 · rust-lang/rfcs

@newpavlov

@newpavlov changed the title msrv RFC: Minimum Supported Rust Version

Jul 4, 2018

@newpavlov

@Centril Centril added the T-cargo

Relevant to the Cargo team, which will review and decide on the RFC.

label

Jul 4, 2018

Nemo157

shingtaklam1324

shingtaklam1324

@newpavlov

kennytm

kennytm

@newpavlov

Ortham

teiesti

@newpavlov

- fixed typo and RFC link
- improved wording a bit
- added `--check-msrv-toolchain` option ( @phaylon )

fintelia

@dbrgn dbrgn mentioned this pull request

Jan 22, 2020

This was referenced

Mar 10, 2020

jeffparsons added a commit to jeffparsons/rangemap that referenced this pull request

Jul 12, 2020
RFC 2495 (rust-lang/rfcs#2495) was merged
quite a while ago, but I think it was never actually implemented.

@etam etam mentioned this pull request

Jan 29, 2021

@sftim sftim mentioned this pull request

Oct 1, 2021

@epage epage mentioned this pull request

Feb 8, 2023

@epage epage mentioned this pull request

Apr 27, 2023

bors added a commit to rust-lang/cargo that referenced this pull request

Apr 28, 2023
feat: Add `-Zmsrv-policy` feature flag

### What does this PR try to resolve?

Nothing noticeable....

The intent is to unblock experiments with different compatible MSRV policies like
- #9930
- #10653
- #10903

While I normally don't like PRs that do nothing on their own, this at least allows any one of those efforts to move forward with different people without juggling these base commits for whoever is first to include in their PR

While there isn't an RFC for this yet, this is intended to allow us to experiment to get a better idea of what we should put in an RFC.  In some cases, we first do an eRFC for this but I assumed this wouldn't be needed in this case as this builds on rust-lang/rfcs#2495 and, I'm assuming, will be more surgical in nature

### How should we test and review this PR?

The `Summary` changes are largely untested as they will be mostly tested through the future work that builds on this PR.  However, I wasn't too concerned about that because the code is relatively trivial.

### Additional information

I chose the name `msrv-policy` to distinguish this unstable feature from `rust-version`.  Though those appear in different places (`Cargo.toml` vs `-Z`), I can see them being confusing which was especially apparent when editing `unstable.md` which has an anchor for `rust-version`.

carloskiki added a commit to carloskiki/rfcs that referenced this pull request

Jan 17, 2025

@epage epage mentioned this pull request

Dec 10, 2025