File tree Expand file tree Collapse file tree 8 files changed +35
-36
lines changed Expand file tree Collapse file tree 8 files changed +35
-36
lines changed Original file line number Diff line number Diff line change
1
+ [resolver ]
2
+ incompatible-rust-versions = " fallback"
3
+
1
4
[target .x86_64-pc-windows-msvc ]
2
5
rustflags = [" -Ctarget-feature=+crt-static" ]
3
6
Original file line number Diff line number Diff line change 9
9
customManagers : [
10
10
{
11
11
customType : 'regex' ,
12
- fileMatch : [
13
- '^rust-toolchain\\.toml$' ,
14
- 'Cargo.toml$' ,
15
- 'clippy.toml$' ,
16
- '\\.clippy.toml$' ,
17
- '^\\.github/workflows/ci.yml$' ,
18
- '^\\.github/workflows/rust-next.yml$' ,
12
+ managerFilePatterns : [
13
+ '/ ^rust-toolchain\\.toml$/ ' ,
14
+ '/ Cargo.toml$/ ' ,
15
+ '/ clippy.toml$/ ' ,
16
+ '/ \\.clippy.toml$/ ' ,
17
+ '/ ^\\.github/workflows/ci.yml$/ ' ,
18
+ '/ ^\\.github/workflows/rust-next.yml$/ ' ,
19
19
] ,
20
20
matchStrings : [
21
21
'STABLE.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)' ,
Original file line number Diff line number Diff line change 54
54
- name : Build
55
55
run : cargo test --workspace --no-run
56
56
- name : Test
57
- run : cargo hack test --feature-powerset --workspace
57
+ run : cargo hack test --each-feature --workspace
58
58
msrv :
59
59
name : " Check MSRV"
60
60
runs-on : ubuntu-latest
68
68
- uses : Swatinem/rust-cache@v2
69
69
- uses : taiki-e/install-action@cargo-hack
70
70
- name : Default features
71
- run : cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
71
+ run : cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
72
72
minimal-versions :
73
73
name : Minimal versions
74
74
runs-on : ubuntu-latest
86
86
- name : Downgrade dependencies to minimal versions
87
87
run : cargo +nightly generate-lockfile -Z minimal-versions
88
88
- name : Compile with minimal versions
89
- run : cargo +stable check --workspace --all-features --locked
89
+ run : cargo +stable check --workspace --all-features --locked --keep-going
90
90
lockfile :
91
91
runs-on : ubuntu-latest
92
92
steps :
@@ -113,7 +113,7 @@ jobs:
113
113
- name : Check documentation
114
114
env :
115
115
RUSTDOCFLAGS : -D warnings
116
- run : cargo doc --workspace --all-features --no-deps --document-private-items
116
+ run : cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
117
117
rustfmt :
118
118
name : rustfmt
119
119
runs-on : ubuntu-latest
@@ -159,7 +159,7 @@ jobs:
159
159
sarif_file : clippy-results.sarif
160
160
wait-for-processing : true
161
161
- name : Report status
162
- run : cargo clippy --workspace --all-features --all-targets -- -D warnings --allow deprecated
162
+ run : cargo clippy --workspace --all-features --all-targets --keep-going -- -D warnings --allow deprecated
163
163
coverage :
164
164
name : Coverage
165
165
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 44
44
- name : Build
45
45
run : cargo test --workspace --no-run
46
46
- name : Test
47
- run : cargo hack test --feature-powerset --workspace
47
+ run : cargo hack test --each-feature --workspace
48
48
latest :
49
49
name : " Check latest dependencies"
50
50
runs-on : ubuntu-latest
66
66
- name : Build
67
67
run : cargo test --workspace --no-run
68
68
- name : Test
69
- run : cargo hack test --feature-powerset --workspace
69
+ run : cargo hack test --each-feature --workspace
Original file line number Diff line number Diff line change
1
+ default_install_hook_types : ["pre-commit", "commit-msg"]
1
2
repos :
2
3
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.5 .0
4
+ rev : v5.0 .0
4
5
hooks :
5
6
- id : check-yaml
6
- stages : [commit]
7
7
- id : check-json
8
- stages : [commit]
9
8
- id : check-toml
10
- stages : [commit]
11
9
- id : check-merge-conflict
12
- stages : [commit]
13
10
- id : check-case-conflict
14
- stages : [commit]
15
11
- id : detect-private-key
16
- stages : [commit]
17
12
- repo : https://github.com/crate-ci/typos
18
- rev : v1.16.20
13
+ rev : v1.32.0
19
14
hooks :
20
15
- id : typos
21
- stages : [commit]
22
16
- repo : https://github.com/crate-ci/committed
23
- rev : v1.0.20
17
+ rev : v1.1.7
24
18
hooks :
25
19
- id : committed
26
- stages : [commit-msg]
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ include = [
13
13
" Cargo.lock" ,
14
14
" LICENSE*" ,
15
15
" README.md" ,
16
- " benches/**/*" ,
17
16
" examples/**/*"
18
17
]
19
18
20
19
[workspace .lints .rust ]
21
20
rust_2018_idioms = { level = " warn" , priority = -1 }
21
+ unnameable_types = " warn"
22
22
unreachable_pub = " warn"
23
23
unsafe_op_in_unsafe_fn = " warn"
24
24
unused_lifetimes = " warn"
@@ -61,7 +61,7 @@ lossy_float_literal = "warn"
61
61
macro_use_imports = " warn"
62
62
mem_forget = " warn"
63
63
mutex_integer = " warn"
64
- needless_continue = " warn "
64
+ needless_continue = " allow "
65
65
needless_for_each = " warn"
66
66
negative_feature_names = " warn"
67
67
path_buf_push_overwrite = " warn"
@@ -86,6 +86,15 @@ verbose_file_reads = "warn"
86
86
wildcard_imports = " warn"
87
87
zero_sized_map_values = " warn"
88
88
89
+ [profile .dev ]
90
+ panic = " abort"
91
+
92
+ [profile .release ]
93
+ panic = " abort"
94
+ codegen-units = 1
95
+ lto = true
96
+ # debug = "line-tables-only" # requires Cargo 1.71
97
+
89
98
[package ]
90
99
name = " git-fixture"
91
100
description = " Reproducible git trees for bug reporting and testing"
@@ -149,12 +158,5 @@ automod = "1.0.14"
149
158
[target .'cfg(any())' .dependencies ]
150
159
pkg-config = " 0.3.26" # HACK: bad minimal dep in libgit2-sys
151
160
152
- [profile .dev ]
153
- panic = " abort"
154
-
155
- [profile .release ]
156
- panic = " abort"
157
- codegen-units = 1
158
-
159
161
[lints ]
160
162
workspace = true
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ allow = [
94
94
" CC0-1.0" ,
95
95
" ISC" ,
96
96
" OpenSSL" ,
97
+ " Zlib" ,
97
98
]
98
99
# The confidence threshold for detecting a license from license text.
99
100
# The higher the value, the more closely the license text must be to the
You can’t perform that action at this time.
0 commit comments