Skip to content

Commit d021c27

Browse files
Merge branch 'master' into peekable-next-if
2 parents 4eb2a2d + a948086 commit d021c27

Some content is hidden

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

61 files changed

+3140
-2120
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,59 @@ name: CI
22

33
on:
44
pull_request:
5-
push:
6-
branches:
7-
- staging
8-
- trying
5+
merge_group:
96

107
jobs:
118
check:
12-
name: check
139
runs-on: ubuntu-latest
1410
strategy:
1511
matrix:
16-
build: [msrv, stable]
1712
features:
1813
[
1914
"",
2015
"--no-default-features",
2116
"--no-default-features --features use_alloc",
2217
"--all-targets --all-features",
2318
]
24-
include:
25-
- build: msrv
26-
rust: 1.62.1
27-
- build: stable
28-
rust: stable
29-
exclude:
30-
- build: msrv
31-
# we only care about the MSRV with respect to the lib target
32-
features: "--all-targets --all-features"
3319
steps:
34-
- uses: actions/checkout@v3
35-
- uses: dtolnay/rust-toolchain@master
36-
with:
37-
toolchain: ${{ matrix.rust }}
38-
- run: cargo check ${{ matrix.features }}
20+
- uses: actions/checkout@v4
21+
- uses: dtolnay/rust-toolchain@stable
22+
- run: RUSTFLAGS="--deny warnings" cargo check ${{ matrix.features }}
23+
24+
msrv:
25+
runs-on: ubuntu-latest
26+
env:
27+
CARGO_NET_GIT_FETCH_WITH_CLI: true
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: taiki-e/install-action@cargo-no-dev-deps
31+
- uses: dtolnay/[email protected]
32+
- run: cargo no-dev-deps check
3933

4034
test:
41-
name: test
4235
runs-on: ubuntu-latest
4336
steps:
44-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
4538
- uses: dtolnay/rust-toolchain@stable
4639
- run: cargo test --all-features
4740

48-
# https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
49-
end-success:
50-
name: bors build finished
51-
if: success()
41+
check-format:
42+
name: check format
5243
runs-on: ubuntu-latest
53-
needs: [check, test]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: dtolnay/rust-toolchain@master
47+
with:
48+
toolchain: stable
49+
components: rustfmt
50+
- run: cargo fmt --check
5451

52+
# Used to signal to branch protections that all other jobs have succeeded.
53+
all-jobs-succeed:
54+
name: All checks succeeded
55+
if: success()
56+
runs-on: ubuntu-latest
57+
needs: [check, msrv, test, check-format]
5558
steps:
5659
- name: Mark the job as successful
5760
run: exit 0

.rustfmt.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exclude = ["/bors.toml"]
1616

1717
edition = "2018"
1818

19-
rust-version = "1.36.0"
19+
rust-version = "1.43.1"
2020

2121
[lib]
2222
bench = false

0 commit comments

Comments
 (0)