# Install cargo-sort

Tool to check that your Cargo.toml dependencies are sorted alphabetically. Version 2.1.4 via Homebrew; verified 2026-04-26.

## Install

```sh
sudo av install brew:cargo-sort
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cargo-sort
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-sort
```

  Evidence: Alpine Linux edge package indexes: cargo-sort from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-sort
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ca/cargo-sort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-sort
```

  Evidence: Arch Linux sync databases: cargo-sort from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package Facts

- **Package key:** brew:cargo-sort
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/cargo-sort>
- **Version:** 2.1.4
- **Source summary:** Tool to check that your Cargo.toml dependencies are sorted alphabetically
- **Homepage:** <https://github.com/devinr528/cargo-sort>
- **Repository:** <https://github.com/devinr528/cargo-sort>
- **Upstream docs:** <https://docs.rs/crate/cargo-sort/latest>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/DevinR528/cargo-sort/archive/refs/tags/v2.1.4.tar.gz>
- **Last updated:** 2026-04-26T11:42:31Z
- **Generated:** 2026-06-18T16:49:02+00:00

## Executables

- cargo-sort (cli)
- cargo-sort (alias)

## Build Dependencies

- rust

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-18
- Package-manager version: 2.1.4
- Package-manager updated: 2026-04-26
- Local data status: ok
- Upstream repository: https://github.com/DevinR528/cargo-sort
- Upstream latest detected: v2.1.4 (current)

## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-sort
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - cargo-sort: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-sort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-sort - 2.1.4-r0: normalized package name match | Alpine Linux edge package indexes: cargo-sort from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Check if tables and items in a .toml file are lexically sorted | https://github.com/DevinR528/cargo-sort
- pacman - cargo-sort - 2.1.4-1: normalized package name match | Arch Linux sync databases: cargo-sort from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Check if tables and items in a .toml file are lexically sorted | https://github.com/DevinR528/cargo-sort


## Related Links

- [Source-control packages](https://www.automicvault.com/de/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/de/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Networking and protocol packages](https://www.automicvault.com/de/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Package ecosystem packages](https://www.automicvault.com/de/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [rust](https://www.automicvault.com/de/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-shear](https://www.automicvault.com/de/pkg/brew/cargo-shear/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, cargo-toml, dependencies, toml.
- [cargo-udeps](https://www.automicvault.com/de/pkg/brew/cargo-udeps/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, cargo-toml, dependencies, toml.
- [cargo-sort](https://www.automicvault.com/de/pkg/cargo/cargo-sort/) - Same normalized package name exists in another local package ecosystem.

## Sources

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