Skip to content

Add rust-version to the Cargo.toml files #2998

@bjorn3

Description

@bjorn3

What problem does this solve or what need does it fill?

This ensures that you will get an error from cargo if your rustc is too old instead of having an error from rustc when compiling a crate that needs a newer rustc version. The rustc error doesn't explain that updating rustc will fix the error.

What solution would you like?

Add

rust-version = "1.56"

or whichever version of rustc we require in the Cargo.toml of all bevy crates.

What alternative(s) have you considered?

Other solutions to solve and/or work around the problem presented.

Additional context

This was stabilized in rust 1.56.0 today. https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html#cargo-rust-version

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions