ci,contrib: check unused deps via cargo-machete

This commit is contained in:
oxalica 2024-10-16 06:22:54 -04:00
parent 0bfdad3877
commit 71c5f038fa
2 changed files with 8 additions and 1 deletions

View file

@ -37,6 +37,9 @@ jobs:
- name: Rustdoc
run: cargo doc --workspace --no-deps
- name: Unused dependencies
uses: bnjbvr/cargo-machete@v0.7.0
- name: Typos
uses: crate-ci/typos@v1.26.0

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
typos
cargo fmt -- --check
fd -e nix | xargs nixfmt --check
if ! out="$(cargo machete 2>/dev/null)"; then
echo "$out"
exit 1
fi
typos