Skip to content

Commit

Permalink
Replace udeps with machete (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
alonh5 authored Sep 24, 2024
1 parent 69bcf5e commit b7544d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly-2024-01-04 test --release --features="slow-tests"

udeps:
machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
name: "Rust Toolchain Setup"
with:
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
id: "cache-cargo"
- if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }}
name: "Download and run cargo-udeps"
run: |
wget -O - -c https://github.com/est31/cargo-udeps/releases/download/v0.1.35/cargo-udeps-v0.1.35-x86_64-unknown-linux-gnu.tar.gz | tar -xz
cargo-udeps-*/cargo-udeps udeps
env:
RUSTUP_TOOLCHAIN: nightly-2024-01-04
- name: Run Machete (detect unused dependencies)
uses: bnjbvr/cargo-machete@main

all-tests:
runs-on: ubuntu-latest
Expand All @@ -184,7 +173,7 @@ jobs:
- run-neon-tests
- run-wasm32-wasi-tests
- run-slow-tests
- udeps
- machete
steps:
- name: Decide whether all the needed jobs succeeded or failed
uses: re-actors/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions crates/prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ nonstandard-style = "deny"
rust-2018-idioms = "deny"
unused = "deny"

[package.metadata.cargo-machete]
ignored = ["downcast-rs"]

[[bench]]
harness = false
name = "bit_rev"
Expand Down

0 comments on commit b7544d8

Please sign in to comment.