-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused constructors and packages (#46)
* Remove unused constructors and packages, add cargo machete job to CI * Rebuild Cargo.lock
- Loading branch information
1 parent
591a82f
commit 5dcaabd
Showing
16 changed files
with
69 additions
and
1,377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.