est31 / cargo-udeps

Find unused dependencies in Cargo.toml
Other
1.76k stars 46 forks source link

cargo-udeps gives false negative #108

Closed tisonkun closed 3 years ago

tisonkun commented 3 years ago

From https://github.com/engula/engula main nightly (965d3d9c5c00941fc91b386d7e82d76d214ec64d), this dep is redundant. But cargo-udeps cannot spot it.

est31 commented 3 years ago

Yeah this is because hyper is a dependency of reqwest and cargo-udeps can't recognize unused dependencies if they are used by some other dependency. This is one of the known limitations, see #84.

tisonkun commented 3 years ago

OK. Thanks for your explanation.