Skip to content

Commit 800d7cb

Browse files
committed
chore: Update from template
2 parents 7d3a380 + 51de731 commit 800d7cb

File tree

142 files changed

+853
-852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+853
-852
lines changed

.clippy.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
msrv = "1.74" # MSRV
2-
warn-on-all-wildcard-imports = true
1+
allow-print-in-tests = true
32
allow-expect-in-tests = true
43
allow-unwrap-in-tests = true
54
allow-dbg-in-tests = true

.github/renovate.json5

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'before 5am on the first day of the month',
44
],
55
semanticCommits: 'enabled',
6+
commitMessageLowerCase: 'never',
67
configMigration: true,
78
dependencyDashboard: true,
89
customManagers: [
@@ -19,29 +20,28 @@
1920
'^\\.github/workflows/rust-next.yml$',
2021
],
2122
matchStrings: [
22-
'MSRV.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
23-
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?MSRV',
23+
'STABLE.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
24+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?STABLE',
2425
],
25-
depNameTemplate: 'rust',
26+
depNameTemplate: 'STABLE',
2627
packageNameTemplate: 'rust-lang/rust',
2728
datasourceTemplate: 'github-releases',
2829
},
2930
],
3031
packageRules: [
3132
{
32-
commitMessageTopic: 'MSRV',
33+
commitMessageTopic: 'Rust Stable',
3334
matchManagers: [
3435
'custom.regex',
3536
],
3637
matchPackageNames: [
37-
'rust',
38+
'STABLE',
3839
],
39-
minimumReleaseAge: '252 days', // 6 releases * 6 weeks per release * 7 days per week
40-
internalChecksFilter: 'strict',
4140
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
4241
schedule: [
4342
'* * * * *',
4443
],
44+
automerge: true,
4545
},
4646
// Goals:
4747
// - Keep version reqs low, ignoring compatible normal/build dependencies
@@ -74,6 +74,7 @@
7474
matchCurrentVersion: '>=1.0.0',
7575
matchUpdateTypes: [
7676
'minor',
77+
'patch',
7778
],
7879
enabled: false,
7980
},
@@ -101,6 +102,7 @@
101102
matchCurrentVersion: '>=1.0.0',
102103
matchUpdateTypes: [
103104
'minor',
105+
'patch',
104106
],
105107
automerge: true,
106108
groupName: 'compatible (dev)',

.github/settings.yml

+15-31
Original file line numberDiff line numberDiff line change
@@ -101,34 +101,18 @@ repository:
101101
# description: "Meta: Request for post-merge review."
102102
# color: '#E10C02'
103103

104-
branches:
105-
- name: master
106-
protection:
107-
required_pull_request_reviews: null
108-
required_conversation_resolution: true
109-
required_status_checks:
110-
# Required. Require branches to be up to date before merging.
111-
strict: false
112-
contexts: ["CI", "Lint Commits", "Spell Check with Typos"]
113-
enforce_admins: false
114-
restrictions: null
115-
- name: v2-master
116-
protection:
117-
required_pull_request_reviews: null
118-
required_conversation_resolution: true
119-
required_status_checks:
120-
# Required. Require branches to be up to date before merging.
121-
strict: false
122-
contexts: ["CI", "Lint Commits", "Spell Check with Typos"]
123-
enforce_admins: false
124-
restrictions: null
125-
- name: v3-master
126-
protection:
127-
required_pull_request_reviews: null
128-
required_conversation_resolution: true
129-
required_status_checks:
130-
# Required. Require branches to be up to date before merging.
131-
strict: false
132-
contexts: ["CI", "Lint Commits", "Spell Check with Typos"]
133-
enforce_admins: false
134-
restrictions: null
104+
# This serves more as documentation.
105+
# Branch protection API was replaced by rulesets but settings isn't updated.
106+
# See https://github.com/repository-settings/app/issues/825
107+
#
108+
# branches:
109+
# - name: master
110+
# protection:
111+
# required_pull_request_reviews: null
112+
# required_conversation_resolution: true
113+
# required_status_checks:
114+
# # Required. Require branches to be up to date before merging.
115+
# strict: false
116+
# contexts: ["CI", "Spell Check with Typos"]
117+
# enforce_admins: false
118+
# restrictions: null

.github/workflows/audit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ env:
1717
CARGO_TERM_COLOR: always
1818
CLICOLOR: 1
1919

20+
concurrency:
21+
group: "${{ github.workflow }}-${{ github.ref }}"
22+
cancel-in-progress: true
23+
2024
jobs:
2125
security_audit:
2226
permissions:

.github/workflows/ci.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@ env:
1414
CARGO_TERM_COLOR: always
1515
CLICOLOR: 1
1616

17+
concurrency:
18+
group: "${{ github.workflow }}-${{ github.ref }}"
19+
cancel-in-progress: true
20+
1721
jobs:
1822
ci:
1923
permissions:
2024
contents: none
2125
name: CI
22-
needs: [test, check, docs, rustfmt, clippy, cffconvert]
26+
needs: [test, check, lockfile, docs, rustfmt, clippy, cffconvert]
2327
runs-on: ubuntu-latest
28+
if: "always()"
2429
steps:
25-
- name: Done
26-
run: exit 0
30+
- name: Failed
31+
run: exit 1
32+
if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')"
2733
test:
2834
name: Test
2935
strategy:
@@ -39,7 +45,7 @@ jobs:
3945
rust: "stable"
4046
features: "full"
4147
- build: mac
42-
os: macos-latest
48+
os: macos-14
4349
rust: "stable"
4450
features: "full"
4551
- build: minimal
@@ -64,6 +70,7 @@ jobs:
6470
with:
6571
toolchain: ${{ matrix.rust }}
6672
- uses: Swatinem/rust-cache@v2
73+
- uses: taiki-e/install-action@cargo-hack
6774
- name: Build
6875
run: make build-${{matrix.features}}
6976
- name: Test
@@ -144,7 +151,7 @@ jobs:
144151
toolchain: stable
145152
- uses: Swatinem/rust-cache@v2
146153
- name: "Is lockfile updated?"
147-
run: cargo fetch --locked
154+
run: cargo update --workspace --locked
148155
docs:
149156
name: Docs
150157
runs-on: ubuntu-latest
@@ -154,7 +161,7 @@ jobs:
154161
- name: Install Rust
155162
uses: dtolnay/rust-toolchain@stable
156163
with:
157-
toolchain: "1.74" # MSRV
164+
toolchain: "1.76" # STABLE
158165
- uses: Swatinem/rust-cache@v2
159166
- name: Check documentation
160167
env:
@@ -169,9 +176,7 @@ jobs:
169176
- name: Install Rust
170177
uses: dtolnay/rust-toolchain@stable
171178
with:
172-
# Not MSRV because its harder to jump between versions and people are
173-
# more likely to have stable
174-
toolchain: stable
179+
toolchain: "1.76" # STABLE
175180
components: rustfmt
176181
- uses: Swatinem/rust-cache@v2
177182
- name: Check formatting
@@ -185,7 +190,7 @@ jobs:
185190
- name: Install Rust
186191
uses: dtolnay/rust-toolchain@stable
187192
with:
188-
toolchain: "1.74" # MSRV
193+
toolchain: "1.76" # STABLE
189194
components: clippy
190195
- uses: Swatinem/rust-cache@v2
191196
- name: Lint (ultra-minimal)

.github/workflows/committed.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
CARGO_TERM_COLOR: always
1212
CLICOLOR: 1
1313

14+
concurrency:
15+
group: "${{ github.workflow }}-${{ github.ref }}"
16+
cancel-in-progress: true
17+
1418
jobs:
1519
committed:
1620
name: Lint Commits

.github/workflows/pre-commit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ env:
1212
CARGO_TERM_COLOR: always
1313
CLICOLOR: 1
1414

15+
concurrency:
16+
group: "${{ github.workflow }}-${{ github.ref }}"
17+
cancel-in-progress: true
18+
1519
jobs:
1620
pre-commit:
1721
permissions:

.github/workflows/rust-next.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ env:
1212
CARGO_TERM_COLOR: always
1313
CLICOLOR: 1
1414

15+
concurrency:
16+
group: "${{ github.workflow }}-${{ github.ref }}"
17+
cancel-in-progress: true
18+
1519
jobs:
1620
test:
1721
name: Test
@@ -32,7 +36,7 @@ jobs:
3236
rust: "beta"
3337
features: "full"
3438
- build: mac
35-
os: macos-latest
39+
os: macos-14
3640
rust: "beta"
3741
features: "full"
3842
- build: nightly
@@ -91,6 +95,7 @@ jobs:
9195
with:
9296
toolchain: stable
9397
- uses: Swatinem/rust-cache@v2
98+
- uses: taiki-e/install-action@cargo-hack
9499
- name: Update dependencues
95100
run: cargo update
96101
- name: Build

.github/workflows/spelling.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ env:
1010
CARGO_TERM_COLOR: always
1111
CLICOLOR: 1
1212

13+
concurrency:
14+
group: "${{ github.workflow }}-${{ github.ref }}"
15+
cancel-in-progress: true
16+
1317
jobs:
1418
spelling:
1519
name: Spell Check with Typos

Cargo.lock

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)