Skip to content

Remove unused dependencies by individual crates #3264

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

Merged
merged 2 commits into from
Mar 17, 2022

Conversation

bnjbvr
Copy link
Contributor

@bnjbvr bnjbvr commented Mar 17, 2022

Using a small tool of my creation to remove unused dependencies; I've seen that cargo-udeps was used, but I've found that it has a few imperfections, as it cannot detect unused dependencies of individual crates within a common workspace. This shouldn't bring large build time improvements, but it change the graph of crate dependencies and thus cause some little wins due to cargo pipelining effects. I haven't observed any improvement outside the range of noise here, unfortunately.

The tool I'm using can be imprecise, so I'm curious to see if CI will be happy with the changes...

@tertsdiepraam
Copy link
Member

Excellent! Have you made the tool public?

@sylvestre sylvestre merged commit ba5b2dc into uutils:main Mar 17, 2022
@sylvestre
Copy link
Contributor

Works great, many thanks :)

Maybe it is going to have a positive impact on:
https://github.com/uutils/coreutils-tracking/#binary-size-evolution
(refreshed tomorrow)

@bnjbvr bnjbvr deleted the remove-unused-dependencies branch March 18, 2022 10:44
@bnjbvr
Copy link
Contributor Author

bnjbvr commented Mar 18, 2022

Excellent! Have you made the tool public?

It's open source and in my repos 👀 but not yet officially public! I've wanted to write a small blog post announcement, explaining how it works and its limitations first.

@tertsdiepraam
Copy link
Member

Very cool! Looking forward to it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants