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
10 changes: 10 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/bin/bash

set -e
########
# Cargo dependencies
#######

# if cargo machete does not return 0
cargo machete || {
echo "❌ You have unused dependencies in your Cargo.toml. Check the above."
exit 1
}

##########
# CLAP CLI
##########
Expand Down
Loading
Loading