Skip to content

Commit

Permalink
Add cargo-udeps to CI (#521)
Browse files Browse the repository at this point in the history
# Objective

Unused dependencies can be left in `Cargo.toml` by accident.

# Solution

- Add `cargo-udeps` to CI.
  • Loading branch information
rj00a authored Sep 4, 2023
1 parent 51b8e74 commit eb6d772
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,22 @@ jobs:
with:
name: bad-depgraph
path: bad-depgraph/
udeps:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3

- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
with:
toolchain: "nightly"

- name: Install cargo-udeps
uses: baptiste0928/[email protected]
with:
crate: cargo-udeps

- name: Check for unused dependencies
run: cargo udeps --all --all-features
1 change: 0 additions & 1 deletion crates/valence_text/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ documentation.workspace = true
license.workspace = true

[dependencies]
anyhow.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
thiserror.workspace = true
Expand Down

0 comments on commit eb6d772

Please sign in to comment.