-
Notifications
You must be signed in to change notification settings - Fork 54
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
chore: Use the workspace.package
table for keys which apply to all of our crates
#344
Conversation
I'm curious how you decided on Rust 1.68.2 as an MSRV, but I don't see any problem with it. I also have no problem with dropping the |
Rust
But if I change the command to:
Then the result is I will check but I think this conflicts with some of our downstream users. So the question is: should we remove stuff so that we can compile all targets with I will add appropriate checks in our CI once this PR is merged so that we never have to deal with this again. |
Here is a list of all the AccessKit users I am aware of with their claimed MSRV:
Actually we could run |
workspace.package
table to define keys which apply to all our cratesworkspace.package
table for keys which apply to all of our crates
I'm not sure I understand the point of running |
I only ran Here is what happens when trying to run clippy with Rust 1.68.2:
I have tested modifying the CI to use latest stable for clippy but 1.68.2 for tests and it works fine. If you agree with this approach then there is nothing more to add here and I will submit a PR with the changes in our main workflow. |
I verified that cargo clippy does run on dependencies by default when running it on a downstream crate. But I don't think we should set our MSRV based on clippy, for two reasons. First, the "unknown lint" warning is not an error by default, though clearly it was on your system, unless you omitted But now, I wonder if we should specify the MSRV for the whole workspace, or per crate. The |
On second thought, if there's an easy way to avoid inconveniencing our users, including those stuck on old toolchain versions for any reason, we should do so. So I'll see if there's a way I can rewrite the code where we currently allow the |
Hmm, if we set an MSRV of at least 1.66.0 across all crates, then we can simplify the implementation of |
Sorry for not being clear enough here: The error I showed come from a CI run I did on my fork. I don't think we should determine our MSRV based on what is needed for clippy to run, hence my suggestion to modify our workflow. I would prefer to have a MSRV policy that applies to the whole workspace, for the sake of simplicity and clarity, but I can change my mind if we have valid counterpoints. I always keep a fairly up-to-date Rust version on my system and I don't like seeing clippy warnings, so I think we should really run clippy separately in our CI. |
OK, a single MSRV for the whole workspace is fine. And since we're declaring an MSRV of 1.68.2, I can go ahead and open a PR for the simplification of |
authors
key has been sort of deprecated for a while now, but I kept this change in a separate commit so we can easily revert it if we don't agree.1.68.2
isn't the correct value at this time:CARGO_BIN_NAME
environment variables in some examples, which is only supported since1.69
.unnecessary_literal_unwrap
inplatforms/windows/src/subclass.rs
yet this clippy lint was introduced in1.72
.So we need to decide whether to replace the offending lines, or to bump our MSRV to
1.72
.