🍺 BREW Explorer

← all formulae

cargo-udeps

brew install cargo-udeps v0.1.61 Apache-2.0 OR MIT

Find unused dependencies in Cargo.toml

193
30-day installs · #2652
344
90-day · #3335
968
365-day · #3894
2.1k
★ GitHub stars · updated 3mo ago

Runtime dependencies

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libgit2",
    "libssh2",
    "openssl@3"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Find unused dependencies in Cargo.toml",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:10+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cargo-udeps",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-04-29T00:05:03Z",
  "github_readme_excerpt": "## cargo-udeps\n\n\n[![crates.io](https://img.shields.io/crates/v/cargo-udeps.svg)](https://crates.io/crates/cargo-udeps)\n[![dependency status](https://deps.rs/repo/github/est31/cargo-udeps/status.svg)](https://deps.rs/repo/github/est31/cargo-udeps)\n\nFind unused dependencies in Cargo.toml.\n\nWhile compilation of this tool also works on Rust stable,\nit needs Rust nightly to actually run.\nAs it includes `cargo` as a dependency, it will likely compile with the latest rustc release, as well as the one before it.\n\n### Installation\n\n#### GitHub Releases\n\n\u003chttps://github.com/est31/cargo-udeps/releases\u003e\n\n#### `cargo install` ([crates.io](https://crates.io/crates/cargo-udeps))\n\n```\ncargo install cargo-udeps --locked\n```\n\n#### `cargo install` ([`master`](https://github.com/est31/cargo-udeps/tree/master))\n\n```\ncargo install --git https://github.com/est31/cargo-udeps --locked\n```\n\n#### Dedicated packages\n\nSome package managers have packaged `cargo-udeps`:\n\n* Nix/Nix OS: `cargo-udeps`\n* Arch Linux: `pacman -S cargo-udeps`\n* Homebrew: `brew install cargo-udeps`\n\n### Usage\n\n```\ncargo +nightly udeps\n```\n\nIt either prints out a \"unused crates\" line listing the crates,\nor it prints out a line saying that no crates were unused.\n\n### pre-commit\n\nYou can use it as [pre-commit](https://pre-commit.com/) hook:\n\n```yaml\n- repo: https://github.com/est31/cargo-udeps\n  rev: v0.1.47\n  hooks:\n  - id: udeps\n```\n\n## Ignoring some of the dependencies\n\nTo ignore some of the dependencies, add `package.metadata.cargo-udeps.ignore` to `Cargo.toml`.\n\n```toml\n[package.metadata.cargo-udeps.ignore]\nnormal = [\"if_chain\"]\n#development = []\n#build = []\n\n[dependencies]\nif_chain = \"1.0.0\" # Used only in doc-tests, which `cargo-udeps` cannot check.\n```\n\nAlternatively, add dependencies to `workspace.metadata.cargo-udeps.ignore` in the\nworkpace `Cargo.toml` to ignore them in all packages in the workspace.\n\n## Known bugs\n\n* Some unused crates might not be detected.\n  This includes crates used by std and its dependencie",
  "github_repo": "est31/cargo-udeps",
  "github_stars": 2117,
  "github_topics": [],
  "homepage": "https://github.com/est31/cargo-udeps",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 193,
  "installs_365d": 968,
  "installs_90d": 344,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0 OR MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cargo-udeps",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 2652,
  "rank_365d": 3894,
  "rank_90d": 3335,
  "raw_hash": "5c7df10af89ce29c",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cargo-udeps.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "rustup"
  ],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "0.1.61",
  "versioned_formulae": [],
  "why_use_this": null
}