Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ hooks](modules/pre-commit.nix).
### Rust

- [cargo-check](https://doc.rust-lang.org/cargo/commands/cargo-check.html)
- [cargo-sort](https://github.com/DevinR528/cargo-sort)
- [clippy](https://github.com/rust-lang/rust-clippy)
- [rustfmt](https://github.com/rust-lang/rustfmt)

Expand Down
10 changes: 10 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2734,6 +2734,16 @@ in
files = "\\.rs$";
pass_filenames = false;
};
cargo-sort =
{
name = "cargo-sort";
description = "Ensure Cargo.toml is sorted.";
package = tools.cargo-sort;
entry = "${hooks.cargo-sort.package}/bin/cargo-sort";
files = "Cargo\\.toml";
types = [ "file" "toml" ];
pass_filenames = false;
};
chart-testing =
{
name = "chart-testing";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, cabal2nix
, callPackage
, cargo
, cargo-sort
, chart-testing
, checkmake
, circleci-cli
Expand Down Expand Up @@ -134,6 +135,7 @@ in
biome
cabal2nix
cargo
cargo-sort
chart-testing
checkmake
circleci-cli
Expand Down
Loading