FICHA · MANJARO

cargo-sort

Check if tables and items in a .toml file are lexically sorted

  • tool
  • CLI
  • FORMATTING
  • CODE-QUALITY
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 27, 2026 description in en

Description

Checks whether tables and items in TOML files are sorted lexically. It helps Rust projects keep Cargo.toml and related configuration files tidy and easier to review.

Use it in formatting or CI checks when the project wants stable ordering. Sorting is a style rule, so apply it only when it matches the team's conventions.

How to run

cargo sort

Commands: cargo sort

Permissions

Permissions not analysed for this source yet.