pre-commit-rust/README.md

24 lines
492 B
Markdown

# Rust hooks for pre-commit
[Rust](https://www.rust-lang.org) tools package for [pre-commit](https://pre-commit.com).
## Using rust tools with pre-commit
```yaml
- repo: https://git.xenia.me.uk/utils/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check
```
## Passing arguments to rustfmt
```yaml
- repo: https://git.xenia.me.uk/utils/pre-commit-rust
rev: master
hooks:
- id: fmt
args: ['--verbose', '--edition', '2018', '--']
```