File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33[ Rust] ( https://www.rust-lang.org ) tools package for [ pre-commit] ( https://pre-commit.com ) .
44
5+ Forked from: [ doublify's pre-commit-rust] ( https://github.com/doublify/pre-commit-rust ) (** NOTE: Their repo is unmaintained** )
6+
57## Using rust tools with pre-commit
68
79``` yaml
8- - repo : https://github.com/doublify/ pre-commit-rust
10+ - repo : https://github.com/antonio-hickey/rusted- pre-commits
911 rev : master
1012 hooks :
1113 - id : fmt
1214 - id : cargo-check
1315 - id : clippy
16+ - id : build
17+ - id : test
1418` ` `
1519
1620## Passing arguments to rustfmt
1721
1822` ` ` yaml
19- - repo : https://github.com/doublify/ pre-commit-rust
23+ - repo : https://github.com/antonio-hickey/rusted- pre-commits
2024 rev : master
2125 hooks :
2226 - id : fmt
23- args : ['--verbose', '--edition', '2018 ', '--']
27+ args : ['--verbose', '--edition', '2021 ', '--']
2428` ` `
You can’t perform that action at this time.
0 commit comments