├── .github └── workflows │ ├── build.yml │ └── gh-pages.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── Makefile.toml ├── README.md ├── _config.yml ├── fixtures ├── expected │ ├── default │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ │ └── xa.rs │ ├── exclude │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ │ └── xa.rs │ ├── order │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ │ └── xa.rs │ ├── order_head_ellipsis │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ │ └── xa.rs │ ├── order_middle_ellipsis │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ │ └── xa.rs │ └── order_preserve │ │ ├── a.rs │ │ ├── b.rs │ │ ├── c.rs │ │ └── x │ │ └── xa.rs └── input │ ├── a.rs │ ├── b.rs │ ├── c.rs │ └── x │ └── xa.rs ├── img ├── basic.gif ├── basic.tape ├── check.gif ├── check.tape ├── order.gif └── order.tape ├── rustfmt.toml ├── sort-derives.toml ├── src ├── config.rs ├── ext.rs ├── grep.rs ├── main.rs ├── process.rs ├── sort.rs └── util.rs └── tests ├── config └── exclude.toml └── test.rs /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/gh-pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/.github/workflows/gh-pages.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/Makefile.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/_config.yml -------------------------------------------------------------------------------- /fixtures/expected/default/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/default/a.rs -------------------------------------------------------------------------------- /fixtures/expected/default/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/default/b.rs -------------------------------------------------------------------------------- /fixtures/expected/default/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/default/c.rs -------------------------------------------------------------------------------- /fixtures/expected/default/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/default/x/xa.rs -------------------------------------------------------------------------------- /fixtures/expected/exclude/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/exclude/a.rs -------------------------------------------------------------------------------- /fixtures/expected/exclude/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/exclude/b.rs -------------------------------------------------------------------------------- /fixtures/expected/exclude/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/exclude/c.rs -------------------------------------------------------------------------------- /fixtures/expected/exclude/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/exclude/x/xa.rs -------------------------------------------------------------------------------- /fixtures/expected/order/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order/a.rs -------------------------------------------------------------------------------- /fixtures/expected/order/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order/b.rs -------------------------------------------------------------------------------- /fixtures/expected/order/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order/c.rs -------------------------------------------------------------------------------- /fixtures/expected/order/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order/x/xa.rs -------------------------------------------------------------------------------- /fixtures/expected/order_head_ellipsis/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_head_ellipsis/a.rs -------------------------------------------------------------------------------- /fixtures/expected/order_head_ellipsis/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_head_ellipsis/b.rs -------------------------------------------------------------------------------- /fixtures/expected/order_head_ellipsis/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_head_ellipsis/c.rs -------------------------------------------------------------------------------- /fixtures/expected/order_head_ellipsis/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_head_ellipsis/x/xa.rs -------------------------------------------------------------------------------- /fixtures/expected/order_middle_ellipsis/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_middle_ellipsis/a.rs -------------------------------------------------------------------------------- /fixtures/expected/order_middle_ellipsis/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_middle_ellipsis/b.rs -------------------------------------------------------------------------------- /fixtures/expected/order_middle_ellipsis/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_middle_ellipsis/c.rs -------------------------------------------------------------------------------- /fixtures/expected/order_middle_ellipsis/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_middle_ellipsis/x/xa.rs -------------------------------------------------------------------------------- /fixtures/expected/order_preserve/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_preserve/a.rs -------------------------------------------------------------------------------- /fixtures/expected/order_preserve/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_preserve/b.rs -------------------------------------------------------------------------------- /fixtures/expected/order_preserve/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_preserve/c.rs -------------------------------------------------------------------------------- /fixtures/expected/order_preserve/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/expected/order_preserve/x/xa.rs -------------------------------------------------------------------------------- /fixtures/input/a.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/input/a.rs -------------------------------------------------------------------------------- /fixtures/input/b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/input/b.rs -------------------------------------------------------------------------------- /fixtures/input/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/input/c.rs -------------------------------------------------------------------------------- /fixtures/input/x/xa.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/fixtures/input/x/xa.rs -------------------------------------------------------------------------------- /img/basic.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/basic.gif -------------------------------------------------------------------------------- /img/basic.tape: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/basic.tape -------------------------------------------------------------------------------- /img/check.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/check.gif -------------------------------------------------------------------------------- /img/check.tape: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/check.tape -------------------------------------------------------------------------------- /img/order.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/order.gif -------------------------------------------------------------------------------- /img/order.tape: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/img/order.tape -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /sort-derives.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/sort-derives.toml -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/ext.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/ext.rs -------------------------------------------------------------------------------- /src/grep.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/grep.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/process.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/process.rs -------------------------------------------------------------------------------- /src/sort.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/sort.rs -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/src/util.rs -------------------------------------------------------------------------------- /tests/config/exclude.toml: -------------------------------------------------------------------------------- 1 | exclude = ["/x/*"] 2 | -------------------------------------------------------------------------------- /tests/test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lusingander/cargo-sort-derives/HEAD/tests/test.rs --------------------------------------------------------------------------------