百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cargo-udeps

> 编程语言
开源

在 Cargo.toml 中查找未使用的依赖项

2.1K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在 Cargo.toml 中查找未使用的依赖项

cargo-udeps

在 Cargo.toml 中查找未使用的依赖项。 虽然此工具的编译也可在 Rust 稳定版上运行, 它需要 Rust 夜间版才能实际运行。 由于它包含了 cargo 作为依赖项,因此它可能会与最新的 rustc 版本以及其前一个版本一起编译。

安装

GitHub 版本发布

https://github.com/est31/cargo-udeps/releases

cargo install (crates.io)

cargo install cargo-udeps --locked

cargo install (master)

cargo install --git https://github.com/est31/cargo-udeps --locked

专用包

有些包管理器已经打包了 cargo-udeps:

  • Nix/Nix OS: cargo-udeps
  • Arch Linux: pacman -S cargo-udeps
  • Homebrew: brew install cargo-udeps

使用方法

cargo +nightly udeps
  • 可能会检测不到一些未使用的 crate。这包括由 std 和其依赖项使用的 crate,以及已经被研究 crate 的依赖项使用的 crate。

  • 目前只按名称处理箱子。 同名但版本不同的两个箱子会造成问题。

[package.metadata.cargo-udeps.ignore] [dependencies]

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言