Skip to content

Proposal: Add a minimal-rust-version flag to crates manifest #2751

@dns2utf8

Description

@dns2utf8

Hi all

Rust is introducing new keywords every now and then. Up until now the community just upgraded to the latest compiler within days, but this will change as soon as the compiler is installed with the package manager of the users distro.

Currently there seem to be only two distros providing a package for rust:

  • Arch currently 1.9, will 1-3 days after a new release of rustc so not a problem
  • Debian currently 1.8 in testing, 1.9 should land in unstable soon (something between 2 and 20 days according to the tracker)

I propose a minimal-rust-version for the manifest to guard against scenarios like this:

Crate A with version 1.3.0 would like to add a new feature, e.g. #[deprecated]

  • For a new compiler this would be only a patch, no change in functionality => 1.3.1
  • For an older compiler this would be a breaking change => 2.0.0

What do you think?

Regards
dns2utf8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions