Automic VaultAutomic Vault

brew

Install cargo-sweep with Homebrew, Nix, pacman

Utility for cleaning up unused build files generated by Cargo. Version 0.8.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cargo-sweep

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#cargo-sweep

nixpkgs package indexes · pkgs/by-name/ca/cargo-sweep/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S cargo-sweep

Arch Linux sync databases · cargo-sweep · source: geo.mirror.pkgbuild.com

overview

Package summary

Utility for cleaning up unused build files generated by Cargo

Commands and aliases

  • cargo-sweep

history

Project history and usage

cargo-sweep is a Cargo subcommand for deleting old or unused build artifacts from target directories without running a full cargo clean.

Project history

The README describes cargo-sweep as a selective cleanup tool for Cargo build artifacts and currently marks the project as unmaintained while pointing users toward cargo-clean-all as an alternative.

Adoption history

GitHub records the repository as created in November 2018, and crates.io records the first cargo-sweep release in the same month. The input package facts list Homebrew, Nix, and Arch packages.

How it is used

The official README documents cleaning by age, installed toolchains, maximum target-directory size, recursive project search, dry-run previews, and a timestamp workflow using `--stamp` and `--file`.

Why package nerds care

cargo-sweep is notable for Cargo users who accumulate large target directories or CI caches, because it offers narrower cleanup choices than Cargo's built-in `cargo clean`.

Timeline

  • 2018: GitHub repository created and first crates.io release recorded.
  • 2025: crates.io records max_version 0.8.0.
  • 2026: GitHub repository metadata still shows recent pushes, while the README marks the project unmaintained.

Related projects

  • The README lists Cargo's built-in `cargo clean` and cargo-clean-all as related cleanup tools.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cargo-sweepcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.8.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.8.0

https://github.com/holmgr/cargo-sweep

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:cargo-sweep
Version0.8.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cargo-sweep
Homepagehttps://github.com/holmgr/cargo-sweep
Repositoryhttps://github.com/holmgr/cargo-sweep
Upstream docshttps://docs.rs/crate/cargo-sweep/latest
LicenseMIT
Source archivehttps://github.com/holmgr/cargo-sweep/archive/refs/tags/v0.8.0.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-sweep
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

cargo-sweep

nix profile install nixpkgs#cargo-sweep
  • normalized package name match
  • Matched by: Cargo Sweep
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-sweep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

cargo-sweep 0.8.0-2

A cargo subcommand for cleaning up unused build files generated by Cargo

https://github.com/holmgr/cargo-sweep

sudo pacman -S cargo-sweep
  • License: MIT
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Cargo Sweep
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-sweep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment