Replies: 2 comments 1 reply
|
现在也可以直接发到 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
章节 静态分析工具
章节文章 cargo udeps
cargo udeps 检查 Cargo.toml 中未使用的依赖
cargo udeps 对标的是 rustc 的 unused_crate_dependencies lint
虽然 rustc 也能检查一些未使用依赖,但是在 lib 和 bin 混合的项目中误报率高
cargo udeps 的最大优点就是几乎没有误报
但是检查力度不如 rustc unused_crate_dependencies lint 仔细,建议二者搭配使用
All reactions