bnjbvr / cargo-machete

Remove unused Rust dependencies with this one weird trick!
MIT License
784 stars 28 forks source link

Rewrite cargo-metadata support, with review comments #132

Closed bnjbvr closed 2 months ago

bnjbvr commented 2 months ago

This makes cargo machete --with-metadata --fix work; it previously broke with kebab-case package names and packages like xml-rs.

It also removes a hack that attempted to parse opaque source ids (last updated in #106).

The solution involves looking at .packages and not just .resolved.


Same as #122, but with review comments addressed to help with landing.