macOS
brew install cargo-sortlocal Homebrew formula metadata
brew
Tool to check that your Cargo.toml dependencies are sorted alphabetically. Version 2.1.4 via Homebrew; verified 2026-04-26.
install
brew install cargo-sortlocal Homebrew formula metadata
sudo apk add cargo-sortAlpine Linux edge package indexes · cargo-sort · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-sortnixpkgs package indexes · pkgs/by-name/ca/cargo-sort/package.nix · source: api.github.com
sudo pacman -S cargo-sortArch Linux sync databases · cargo-sort · source: geo.mirror.pkgbuild.com
overview
Tool to check that your Cargo.toml dependencies are sorted alphabetically
history
cargo-sort is a Rust Cargo subcommand for checking and sorting Cargo.toml dependency tables and related TOML tables.
The project README says cargo-sort was created as an implementation of David Tolnay's request-for-implementation issue for alphabetically sorting Cargo.toml dependencies, and that it uses toml-edit to parse TOML.
GitHub records the repository as created in June 2019, while crates.io records the cargo-sort crate as first published in May 2021. The input package facts list it in Homebrew, Alpine, Nix, and Arch packaging.
The official README documents `cargo sort` as a cargo subcommand with default rewrite, check-only, print, workspace, custom table-order, grouped sorting, and `--config` modes.
cargo-sort matters to package maintainers because it turns Cargo.toml dependency ordering into a repeatable check, useful for CI and pre-commit workflows where noisy dependency diffs are annoying.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
tomlfmt.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-sort | cli | global executable |
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.
https://github.com/DevinR528/cargo-sort
install metadata
| Package key | brew:cargo-sort |
|---|---|
| Version | 2.1.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-sort |
| Homepage | https://github.com/devinr528/cargo-sort |
| Repository | https://github.com/devinr528/cargo-sort |
| Upstream docs | https://github.com/DevinR528/cargo-sort#readme |
| 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 |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-sort
nix profile install nixpkgs#cargo-sortcargo-sort 2.1.4-r0
Check if tables and items in a .toml file are lexically sorted
https://github.com/DevinR528/cargo-sort
sudo apk add cargo-sortcargo-sort 2.1.4-1
Check if tables and items in a .toml file are lexically sorted
https://github.com/DevinR528/cargo-sort
sudo pacman -S cargo-sortsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.