Skip to content

Commit 76ec06f

Browse files
committed
chore: Update from _rust/main template
2 parents cd95fd1 + 271edc6 commit 76ec06f

File tree

7 files changed

+32
-27
lines changed

7 files changed

+32
-27
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[resolver]
2+
incompatible-rust-versions = "fallback"

.github/renovate.json5

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
customManagers: [
1010
{
1111
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$/',
1919
],
2020
matchStrings: [
2121
'STABLE.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Build
5050
run: cargo test --workspace --no-run
5151
- name: Test
52-
run: cargo hack test --feature-powerset --exclude-features nightly --workspace
52+
run: cargo hack test --each-feature --workspace --exclude-features nightly
5353
- name: Test Release
5454
run: cargo test --workspace --release
5555
msrv:
@@ -65,7 +65,7 @@ jobs:
6565
- uses: Swatinem/rust-cache@v2
6666
- uses: taiki-e/install-action@cargo-hack
6767
- name: Default features
68-
run: cargo hack check --feature-powerset --exclude-features nightly --locked --rust-version --ignore-private --workspace --all-targets
68+
run: cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going --exclude-features nightly
6969
minimal-versions:
7070
name: Minimal versions
7171
runs-on: ubuntu-latest
@@ -83,7 +83,7 @@ jobs:
8383
- name: Downgrade dependencies to minimal versions
8484
run: cargo +nightly generate-lockfile -Z minimal-versions
8585
- name: Compile with minimal versions
86-
run: cargo +stable check --workspace --locked
86+
run: cargo +stable check --workspace --locked --keep-going
8787
lockfile:
8888
runs-on: ubuntu-latest
8989
steps:
@@ -110,7 +110,7 @@ jobs:
110110
- name: Check documentation
111111
env:
112112
RUSTDOCFLAGS: -D warnings
113-
run: cargo doc --workspace --no-deps --document-private-items
113+
run: cargo doc --workspace --no-deps --document-private-items --keep-going
114114
rustfmt:
115115
name: rustfmt
116116
runs-on: ubuntu-latest
@@ -156,7 +156,7 @@ jobs:
156156
sarif_file: clippy-results.sarif
157157
wait-for-processing: true
158158
- name: Report status
159-
run: cargo clippy --workspace --all-targets -- -D warnings --allow deprecated
159+
run: cargo clippy --workspace --all-targets --keep-going -- -D warnings --allow deprecated
160160
coverage:
161161
name: Coverage
162162
runs-on: ubuntu-latest

.github/workflows/rust-next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build
4040
run: cargo test --workspace --no-run
4141
- name: Test
42-
run: cargo hack test --feature-powerset --exclude-features nightly --workspace
42+
run: cargo hack test --each-feature --workspace --exclude-features nightly
4343
latest:
4444
name: "Check latest dependencies"
4545
runs-on: ubuntu-latest
@@ -57,4 +57,4 @@ jobs:
5757
- name: Build
5858
run: cargo test --workspace --no-run
5959
- name: Test
60-
run: cargo hack test --feature-powerset --exclude-features nightly --workspace
60+
run: cargo hack test --each-feature --workspace --exclude-features nightly

.pre-commit-config.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
1+
default_install_hook_types: ["pre-commit", "commit-msg"]
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
4+
rev: v5.0.0
45
hooks:
56
- id: check-yaml
6-
stages: [commit]
77
- id: check-json
8-
stages: [commit]
98
- id: check-toml
10-
stages: [commit]
119
- id: check-merge-conflict
12-
stages: [commit]
1310
- id: check-case-conflict
14-
stages: [commit]
1511
- id: detect-private-key
16-
stages: [commit]
1712
- repo: https://github.com/crate-ci/typos
18-
rev: v1.16.20
13+
rev: v1.32.0
1914
hooks:
2015
- id: typos
21-
stages: [commit]
2216
- repo: https://github.com/crate-ci/committed
23-
rev: v1.0.20
17+
rev: v1.1.7
2418
hooks:
2519
- id: committed
26-
stages: [commit-msg]

Cargo.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ include = [
1717
"Cargo.lock",
1818
"LICENSE*",
1919
"README.md",
20-
"benches/**/*",
2120
"examples/**/*"
2221
]
2322

2423
[workspace.lints.rust]
2524
rust_2018_idioms = { level = "warn", priority = -1 }
25+
unnameable_types = "warn"
2626
unreachable_pub = "warn"
2727
unsafe_op_in_unsafe_fn = "warn"
2828
unused_lifetimes = "warn"
@@ -65,7 +65,7 @@ lossy_float_literal = "warn"
6565
macro_use_imports = "warn"
6666
mem_forget = "warn"
6767
mutex_integer = "warn"
68-
needless_continue = "warn"
68+
needless_continue = "allow"
6969
needless_for_each = "warn"
7070
negative_feature_names = "warn"
7171
path_buf_push_overwrite = "warn"
@@ -90,6 +90,15 @@ verbose_file_reads = "warn"
9090
wildcard_imports = "warn"
9191
zero_sized_map_values = "warn"
9292

93+
[profile.dev]
94+
panic = "abort"
95+
96+
[profile.release]
97+
panic = "abort"
98+
codegen-units = 1
99+
lto = true
100+
# debug = "line-tables-only" # requires Cargo 1.71
101+
93102
[package]
94103
name = "human-panic"
95104
version = "2.0.2"

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ allow = [
9494
"CC0-1.0",
9595
"ISC",
9696
"OpenSSL",
97+
"Zlib",
9798
]
9899
# The confidence threshold for detecting a license from license text.
99100
# The higher the value, the more closely the license text must be to the

0 commit comments

Comments
 (0)