File tree Expand file tree Collapse file tree 9 files changed +40
-29
lines changed Expand file tree Collapse file tree 9 files changed +40
-29
lines changed Original file line number Diff line number Diff line change
1
+ [resolver ]
2
+ incompatible-rust-versions = " fallback"
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 50
50
- name : Build
51
51
run : cargo test --workspace --no-run
52
52
- name : Test
53
- run : cargo hack test --feature-powerset --workspace
53
+ run : cargo hack test --each-feature --workspace
54
54
msrv :
55
55
name : " Check MSRV"
56
56
runs-on : ubuntu-latest
64
64
- uses : Swatinem/rust-cache@v2
65
65
- uses : taiki-e/install-action@cargo-hack
66
66
- name : Default features
67
- run : cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --lib --bins
67
+ run : cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --lib --bins --keep-going
68
68
minimal-versions :
69
69
name : Minimal versions
70
70
runs-on : ubuntu-latest
82
82
- name : Downgrade dependencies to minimal versions
83
83
run : cargo +nightly generate-lockfile -Z minimal-versions
84
84
- name : Compile with minimal versions
85
- run : cargo +stable check --workspace --all-features --locked
85
+ run : cargo +stable check --workspace --all-features --locked --keep-going
86
86
lockfile :
87
87
runs-on : ubuntu-latest
88
88
steps :
@@ -109,7 +109,7 @@ jobs:
109
109
- name : Check documentation
110
110
env :
111
111
RUSTDOCFLAGS : -D warnings
112
- run : cargo doc --workspace --all-features --no-deps --document-private-items
112
+ run : cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
113
113
rustfmt :
114
114
name : rustfmt
115
115
runs-on : ubuntu-latest
@@ -155,7 +155,7 @@ jobs:
155
155
sarif_file : clippy-results.sarif
156
156
wait-for-processing : true
157
157
- name : Report status
158
- run : cargo clippy --workspace --all-features --all-targets -- -D warnings --allow deprecated
158
+ run : cargo clippy --workspace --all-features --all-targets --keep-going -- -D warnings --allow deprecated
159
159
coverage :
160
160
name : Coverage
161
161
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 40
40
- name : Build
41
41
run : cargo test --workspace --no-run
42
42
- name : Test
43
- run : cargo hack test --feature-powerset --workspace
43
+ run : cargo hack test --each-feature --workspace
44
44
latest :
45
45
name : " Check latest dependencies"
46
46
runs-on : ubuntu-latest
58
58
- name : Build
59
59
run : cargo test --workspace --no-run
60
60
- name : Test
61
- run : cargo hack test --feature-powerset --workspace
61
+ 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 = " annotate-snippets"
91
100
version = " 0.11.5"
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ which may look like this:
15
15
Local Development
16
16
-----------------
17
17
18
- cargo build
19
- cargo test
18
+ ``` console
19
+ $ cargo build
20
+ $ cargo test
21
+ ```
20
22
21
23
When submitting a PR please use [ ` cargo fmt ` ] [ ] (nightly).
22
24
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ allow = [
87
87
" MIT" ,
88
88
" MIT-0" ,
89
89
" Apache-2.0" ,
90
+ " BSD-2-Clause" ,
90
91
" BSD-3-Clause" ,
91
92
" MPL-2.0" ,
92
93
" Unicode-DFS-2016" ,
Original file line number Diff line number Diff line change @@ -58,3 +58,7 @@ pub use level::Level;
58
58
#[ doc( inline) ]
59
59
pub use renderer:: Renderer ;
60
60
pub use snippet:: * ;
61
+
62
+ #[ doc = include_str ! ( "../README.md" ) ]
63
+ #[ cfg( doctest) ]
64
+ pub struct ReadmeDoctests ;
You can’t perform that action at this time.
0 commit comments