feat(rust): add cargo hooks

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-02-24 16:25:52 +01:00
parent 857e178381
commit 0395df5967
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -25,3 +25,32 @@
language: system
types:
- rust
# Cargo
- id: cargo-fmt
name: cargo fmt
description: Format sources with cargo fmt.
entry: cargo fmt
args:
- "--"
language: system
types:
- rust
- id: cargo-check
name: cargo check
description: Check the crate for errors.
entry: cargo check
language: system
types:
- rust
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
description: Lint the crate with cargo clippy.
entry: cargo clippy
args:
- "--"
language: system
types:
- rust
pass_filenames: false