Skip to content

Commit

Permalink
Remove unused constructors and packages (#46)
Browse files Browse the repository at this point in the history
* Remove unused constructors and packages, add cargo machete job to CI

* Rebuild Cargo.lock
  • Loading branch information
danieljharvey authored Dec 20, 2024
1 parent 591a82f commit 5dcaabd
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 1,377 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cargo-machete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: find unused dependencies

on:
push:

jobs:
cargo-machete:
name: find unused dependencies with cargo machete
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@v4

- name: install tools
run: |
rustup show
cargo install cargo-machete
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build" # share the cache across jobs
save-if: false

- name: find unused dependencies
run: |
cargo machete --with-metadata
Loading

0 comments on commit 5dcaabd

Please sign in to comment.