Tool to order the items constained in rust source files
Rust 100.0%
9 1 0

Clone this repository

https://tangled.org/dekker.one/rust-organizer
git@knot.dekker.one:dekker.one/rust-organizer

For self-hosted knots, clone URLs may differ based on your setup.

README.md

Rust Organizer#

An opinionated tool that organizes a Rust source file in the following order:

  1. mod <name>
  2. use
  3. sorted const/static
  4. sorted struct/enum/union/type/trait
  5. fn
  6. impl
  7. mod <name> { ... }