Skip to content

Commit 43cd68c

Browse files
committed
extracted from simkube, updated to use jsonptr
0 parents  commit 43cd68c

7 files changed

Lines changed: 764 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
repos:
3+
- repo: "https://github.com/pre-commit/pre-commit-hooks"
4+
rev: v4.4.0
5+
hooks:
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: "https://github.com/adrienverge/yamllint.git"
9+
rev: v1.35.1
10+
hooks:
11+
- id: yamllint
12+
args: ['--strict', '-d', '{extends: default, rules: {line-length: {max: 120}}}']
13+
- repo: "https://github.com/doublify/pre-commit-rust"
14+
rev: v1.0
15+
hooks:
16+
- id: cargo-check
17+
- id: clippy
18+
- repo: "https://github.com/futuretech6/pre-commit-rust-nightly"
19+
rev: v1.1
20+
hooks:
21+
- id: fmt
22+
args: ['--', '--unstable-features']

.rustfmt.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
edition = "2021"
2+
array_width = 100
3+
blank_lines_upper_bound = 2
4+
chain_width = 100
5+
comment_width = 100
6+
condense_wildcard_suffixes = true
7+
fn_call_width = 100
8+
group_imports = "StdExternalCrate"
9+
imports_layout = "Vertical"
10+
imports_granularity = "Module"
11+
match_block_trailing_comma = true
12+
max_width = 120
13+
newline_style = "Unix"
14+
reorder_impl_items = true
15+
single_line_if_else_max_width = 100
16+
struct_lit_width = 50
17+
use_field_init_shorthand = true
18+
wrap_comments = true

0 commit comments

Comments
 (0)