-
Notifications
You must be signed in to change notification settings - Fork 49
chore: add cargo-udeps, remove unused deps #263
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this approach as it often has a lot of problems like false reports
[package.metadata.cargo-machete]
ignored = ["vergen"]
^ I think this is kind of unidle, that we would need to manually ignore mistakes it makes.
I think we could instead add a CI which runs udeps for example sigp/discv5#179
And I wouldn't want a command like this to be in make lint
, I would want the CI to moreso act like an alert that the PR maintainer can then further look into themselves
Okay, it makes sense to have it only in CI. Lately, I have preferred cargo-machete due to it being much faster, and I've also had problems with cargo-udeps where I had to manually ignore some dependencies. But I'm fine with cargo-udeps as well. |
As long as we don't have an |
I would also be fine with a solution where we didn't have a CI, but had a make command to run it just, not under lint, then it could be up to the individual to check |
I just tried With machete, you can also specify ignore deps in the workspace Cargo.toml instead of having to specify in each package Cargo.toml separately. I guess there are 3 options:
|
I am fine adding a page to the Ream Book, and an option called I am pretty against having |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Good tool to remove unused deps so it doesn't have to be checked manually.