-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-rust-versionArea: rust-version in Cargo.tomlArea: rust-version in Cargo.tomlC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.
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.
jhpratt, maxkl, est31 and 8573
Metadata
Metadata
Assignees
Labels
A-rust-versionArea: rust-version in Cargo.tomlArea: rust-version in Cargo.tomlC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.
Type
Projects
Status
Done