FICHA · MANJARO

cargo-sort-derives

Cargo subcommand to sort derive attributes

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

Description

Sorts derive attributes in Rust code through a Cargo subcommand. It helps keep generated trait lists and style-sensitive diffs more consistent across a project.

Use it when the project has a convention for derive ordering. It is a formatting aid, not a functional change by itself, so run tests only when combined with broader edits.

How to run

cargo sort-derives

Commands: cargo sort-derives

Permissions

Permissions not analysed for this source yet.