Closed
Description
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:
- An optional
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. - If specified, Cargo versions newer than the one stabilizing this feature will start to fail any compile-like commands with an error referring to the specified
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. - The
rust-version
field may be ignored using the--ignore-rust-version
option.
Metadata
Metadata
Assignees
Type
Projects
Status
Done