From 5b77abace0f9f3ab4655bf1aee61e574e40c0685 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 5 Jun 2024 01:37:17 +0100 Subject: [PATCH] chore: Use system cargo-deny rather than building from source --- .github/workflows/ci.yml | 4 +++- .pre-commit-config.yaml | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9415780..59ee357 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,9 @@ jobs: fetch-depth: 0 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - + - uses: taiki-e/install-action@v2 + with: + tool: cargo-deny - uses: actions/setup-python@v5 with: python-version: 3.x diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bfe0c83..8151ea0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,10 +39,17 @@ repos: args: [--all-targets, --all-features, "--", "-D", "warnings"] - id: build - id: test - - repo: https://github.com/EmbarkStudios/cargo-deny - rev: 0.14.24 + - repo: local hooks: - id: cargo-deny + name: check Cargo dependencies + description: check Cargo dependencies + entry: cargo-deny + language: system + types: [file, toml] + files: Cargo\.(toml|lock) + pass_filenames: false + args: ["--all-features", "check"] - repo: https://github.com/crate-ci/typos rev: v1.22.0 hooks: