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

Add [lints] and [workspace.lints] tables to the Cargo manifest schema #3399

Open
tigerros opened this issue Nov 18, 2023 · 0 comments
Open
Labels
help wanted Request-for-new-schema Request to add a new JSON schema. (auto-generated by issue forms)

Comments

@tigerros
Copy link

Description of the JSON schema.

Rust 1.74.0 introduces new properties in the Cargo.toml for controlling lints for different linters (right now, it's Rust, Clippy and Rustdoc). Example:

[lints.rust]
unsafe_code = "forbid"

[lints.clippy]
enum_glob_use = "deny"

These are a short-hand for:

[lints.rust]
unsafe_code = { level = "forbid", priority = 0 }

[lints.clippy]
enum_glob_use = { level = "deny", priority = 0 }

There's also [workspace.lints] which I think works like [workspace.package]. I haven't read the RFC though.

A possible problem is the fact that there is a huge amount of lints to cover. I'm not sure if you guys auto-generate this stuff in cases like this. Sorry, this is my first issue and I don't really know anything about how this works!

Supporting information.

Are you making a PR for this?

No, someone else must create the PR.

@tigerros tigerros added the Request-for-new-schema Request to add a new JSON schema. (auto-generated by issue forms) label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Request-for-new-schema Request to add a new JSON schema. (auto-generated by issue forms)
Projects
None yet
Development

No branches or pull requests

2 participants