Skip to content

Commit

Permalink
build: run cargo udeps in checks (#246)
Browse files Browse the repository at this point in the history
Checks for dependencies on unused crates
  • Loading branch information
reubeno authored Oct 27, 2024
1 parent 2fb527d commit 4676c66
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,27 @@ jobs:
if: matrix.rust-version == 'stable'
run: cargo clippy --all-features --all-targets

# Check for unneeded dependencies.
check-deps:
name: "Check for unneeded dependencies"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up nightly rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Install cargo-udeps
uses: taiki-e/install-action@v2
with:
tool: cargo-udeps

- name: Check for unused dependencies
run: cargo udeps --workspace --all-targets --all-features

# Performance analysis of the code.
benchmark:
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 4676c66

Please sign in to comment.