chore: Add cargo-machete to detect unused dependencies (#1259)

This commit is contained in:
tottoto
2023-02-08 09:08:21 -05:00
committed by GitHub
parent 2e3e9acf7b
commit b3567a394f
16 changed files with 51 additions and 0 deletions
+6
View File
@@ -27,6 +27,10 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-hack
- name: Install cargo-machete
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-machete
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
@@ -34,6 +38,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Check fmt
run: cargo fmt -- --check
- name: Check unused dependencies
run: cargo machete
- name: Check features
run: cargo hack check --all --ignore-private --each-feature --no-dev-deps
- name: Check all targets