Skip to content

Commit 21dd05b

Browse files
Update dependencies, MSRV, pre-commit hooks (#64)
* Refresh dependencies * Update to new MSRV with the new `just msrv` command, and bump minor version * Disable unmaintained git hooks integration, use pre-commit instead * Cleanup readme and justfiles --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d0ce9c0 commit 21dd05b

File tree

7 files changed

+150
-187
lines changed

7 files changed

+150
-187
lines changed

.cargo-husky/hooks/pre-push

Lines changed: 0 additions & 13 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
### Rust template
2-
# Generated by Cargo
3-
# will have compiled files and executables
4-
debug/
5-
target/
6-
7-
# These are backup files generated by rustfmt
81
**/*.rs.bk
9-
10-
# MSVC Windows builds of rustc generate these, which store debugging information
112
*.pdb
3+
.idea
4+
.vscode
5+
debug/
6+
target/
7+
venv/

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
12+
- repo: local
13+
hooks:
14+
- id: cargo-fmt
15+
name: Rust Format
16+
description: "Automatically format Rust code with cargo fmt"
17+
entry: sh -c "cargo fmt --all"
18+
language: rust
19+
pass_filenames: false

0 commit comments

Comments
 (0)