Skip to content

Create a rust-toolchain.toml using the project's MSRV #728

@lucamuscat

Description

@lucamuscat

The rust-toolchain.toml file allows a rust project to pin itself to a specific version of rust, preventing contributors from using versions of rust that are more modern than the project's Minimum Supported Rust Version (MSRV). This prevents contributors from accidentally using features introduced in more modern versions of rust that are not found in the MSRV.

Another benefit of the rust-toolchain.toml file is that invoking cargo build will automatically install and activate the rustup toolchain specified in the rust-toolchain.toml file.

I am open to contributing this PR myself if you agree to the above points.

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