Skip to content

Tracking issue for minimum supported Rust version (RFC 2495) #8072

Closed
@djc

Description

@djc

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 the Cargo.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

No one assigned

    Labels

    A-rust-versionArea: rust-version in Cargo.tomlC-tracking-issueCategory: A tracking issue for something unstable.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions