logoalt Hacker News

n_u • today at 7:10 PM • 2 replies • view on HN

> Cargo now reports unused dependencies to users, e.g.

> warning: unused dependency `tracing-subscriber` --> Cargo.toml:23:1 | 23 | tracing-subscriber.workspace = true | ^^^^^^^^^^^^^^^^^^ | = note: `cargo::unused_dependencies` is set to `warn` by default help: consider removing the dependency on `tracing-subscriber`

Heck yes


Replies

jtwaleson • today at 8:39 PM

Does this remove the need for machete or shear?

➕ show 1 reply
minimaxir • today at 8:02 PM

I updated to 1.100 during a Claude session and it complained about new warnings, so I told it to fix them. It removed a large number of unused dependencies without issue.