Skip to content

Commit

Permalink
chore: Use system cargo-deny rather than building from source
Browse files Browse the repository at this point in the history
  • Loading branch information
JadedBlueEyes committed Jun 5, 2024
1 parent 655ab6d commit 5b77aba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5b77aba

Please sign in to comment.