You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there currently some way to get metadata about unused crates? Without external proper tooling I would probably classify this as quite time consuming to implement with little value gained when considering the time it took to implement.
I know that cargo-udeps is a thing but sadly they do not provide a library API to take advantage of their code analysis. Maybe tapping into rustc warnings can be done (rust-lang/rust#72342).
cargo udeps is an existing tool for doing this. Seeing as there are still caveats to how it works, I think more work should be put into that before integrating its behavior into cargo rm especially with #682
Activity
[-]RFC: `cargo rm --used`[/-][+]RFC: `cargo rm --unused`[/+]mainrs commentedon Aug 16, 2020
Is there currently some way to get metadata about unused crates? Without external proper tooling I would probably classify this as quite time consuming to implement with little value gained when considering the time it took to implement.
I know that
cargo-udepsis a thing but sadly they do not provide a library API to take advantage of their code analysis. Maybe tapping intorustcwarnings can be done (rust-lang/rust#72342).Xuanwo commentedon Aug 17, 2020
Maybe we can use
librustc_metadatadirectly?epage commentedon Sep 1, 2022
cargo udepsis an existing tool for doing this. Seeing as there are still caveats to how it works, I think more work should be put into that before integrating its behavior intocargo rmespecially with #682Auto merge of #11099 - cassaundra:cargo-remove, r=epage
Auto merge of #11099 - cassaundra:cargo-remove, r=epage
Auto merge of #11099 - cassaundra:cargo-remove, r=epage