Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the rust-version field in Cargo.toml to specify the MSRV #7765

Closed
jonasbb opened this issue Oct 4, 2021 · 1 comment · Fixed by #8774
Closed

Support the rust-version field in Cargo.toml to specify the MSRV #7765

jonasbb opened this issue Oct 4, 2021 · 1 comment · Fixed by #8774
Labels
C-an-interesting-project Category: Interesting projects, that usually are more involved design/code wise. C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages

Comments

@jonasbb
Copy link

jonasbb commented Oct 4, 2021

The first crates are starting to make use of the rust-version field in Cargo.toml, which gets stabilized with the 1.56 version of rust, see rust-lang/rust#65262 and rust-lang/cargo#9732.

So far it does not seem like Clippy is able to understand this field. It only supports specifying it in it's own config file and unstably as an inner attribute (Readme).

@rustbot label +C-enhancement

@rustbot rustbot added the C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages label Oct 4, 2021
@xFrednet xFrednet added the C-an-interesting-project Category: Interesting projects, that usually are more involved design/code wise. label Oct 5, 2021
@flip1995
Copy link
Member

flip1995 commented Oct 8, 2021

@rustbot claim

bors added a commit to rust-lang/cargo that referenced this issue Oct 12, 2021
Add rust_metadata to SerializedPackage

After the rust_version field was stabilized in #9732 this adds the
rust_version as output to the `cargo metadata` command, so tools like
Clippy can read and use it as well.

We will probably need this for rust-lang/rust-clippy#7765
@jonasbb jonasbb changed the title Support the rust-version field in Cargo.toml Support the rust-version field in Cargo.toml to specify the MSRV Oct 19, 2021
@flip1995 flip1995 removed their assignment May 2, 2022
@bors bors closed this as completed in b776fb8 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-an-interesting-project Category: Interesting projects, that usually are more involved design/code wise. C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants