cargo-sort
brew install cargo-sort
v2.1.4
Apache-2.0 OR MIT
Tool to check that your Cargo.toml dependencies are sorted alphabetically
27
30-day installs · #6090
99
90-day · #5592
301
365-day · #6315
284
★ GitHub stars · updated 3mo ago
Build dependencies
Links
- https://github.com/devinr528/cargo-sort
- GitHub: devinr528/cargo-sort
- Brew formula source: Formula/c/cargo-sort.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Tool to check that your Cargo.toml dependencies are sorted alphabetically",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:09+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-sort",
"github_default_branch": "main",
"github_last_commit_at": "2026-04-25T10:18:56Z",
"github_readme_excerpt": "# Cargo Sort\n\n[](https://crates.io/crates/cargo-sort)\n[](https://github.com/DevinR528/cargo-sort-ck/actions/workflows/stable.yml)\n\nA tool to check that your Cargo.toml dependencies are sorted alphabetically. Project created as a solution to @dtolnay\u0027s [request for implementation #29](https://github.com/dtolnay/request-for-implementation/issues/29). Cross platform implementation, windows compatible. Terminal coloring works on both cmd.exe and powershell. Checks/sorts by key in tables and also nested table headers (does not sort the items in a nested header, sorts the table itself). `cargo sort` uses [toml-edit](https://github.com/ordian/toml_edit) to parse the toml file into something useful.\n\nThe `--format` option may result in improperly formatted toml; please file an issue.\n\n## Use\n\nThere are three modes cargo-sort can be used in:\n * **default**\n - No flags set cargo-sort will write the sorted result over the input Cargo.toml file.\n * **-c or --check**\n - Will fail with a non-zero exit code if the file is unsorted.\n * **-n or --no-format**\n - Will **NOT** format the sorted toml. This option only has an effect if writing or printing out.\n * **--check-format**\n - Checks that after sorting the original input file has not changed. `--check` combined with this is strict on both sorting and formatting (note: formatting is subject to change without a major version bump).\n * **-g or --grouped**\n - When sorting keep table key value spacing. If you have dependency groups they will stick but be sorted within the grouping.\n The `key_value_newlines` config option needs to be `true` for this to have any effect.\n * **-p or --print**\n - Write the sorted toml file to stdout.\n * **-w or --workspace**\n - Checks every crate in the workspace based on flags. Only one root may be given.\n * **-o or --order**\n",
"github_repo": "devinr528/cargo-sort",
"github_stars": 284,
"github_topics": [],
"homepage": "https://github.com/devinr528/cargo-sort",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 27,
"installs_365d": 301,
"installs_90d": 99,
"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-sort",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6090,
"rank_365d": 6315,
"rank_90d": 5592,
"raw_hash": "92ab56338a26d9be",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-sort.rb",
"tap": "homebrew/core",
"test_dependencies": [
"rustup"
],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "2.1.4",
"versioned_formulae": [],
"why_use_this": null
}