-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tracking issue for minimum supported Rust version (RFC 2495) #8072
Comments
My call for testing in https://users.rust-lang.org/t/call-for-testing-unstable-cargo-support-for-rust-version/59386/4 has not yielded any explicit feedback (other than likes on the post). What should we do next? Would be nice to have this stabilized (the edition coming up is also one reason why this might start being more useful). |
I think stabilizing would be fine. Just need to submit a PR, updating the documentation, and write a clear description of what is being stabilized. |
What is being stabilized:
|
Stabilize the rust-version field I've tried to make the documentation here fairly comprehensive. I've also updated the first version for the 2021 edition, which should now be stable pending substantial unforeseen changes. See #8072.
Closing as this has been stabilized in #9732. |
Shouldn't cargo tracking issue FCPs get tracked in This Week in Rust? |
List of issues in rust related tooling to provide support for the new feature: |
RFC: https://github.com/rust-lang/rfcs/blob/master/text/2495-min-rust-version.md
Rust tracking issue: rust-lang/rust#65262
Initial implementation: #8037
Documentation: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
Concise description of the implementation:
rust-version
field in theCargo.toml
package
section, which can contain a version number like"1.43.1"
or"1.56"
. It must be a single version number, with no semver operator(s) or pre-release identifier. The version must be equal to or newer than the version that first introduces support for the configured edition.rust-version
if the crate is compiled with an older version of the compiler. Pre-release identifiers for the active compilers are ignored for purposed of comparison.rust-version
field may be ignored using the--ignore-rust-version
option.The text was updated successfully, but these errors were encountered: