Skip to content

Commit 66756bc

Browse files
authored
update all crates msrv to 1.57 (#464)
1 parent 126ed4c commit 66756bc

File tree

18 files changed

+34
-91
lines changed

18 files changed

+34
-91
lines changed

.cargo/config.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@ ci-check = "hack --workspace --feature-powerset --exclude-features=io-uring chec
1414
ci-check-linux = "hack --workspace --feature-powerset check --tests --examples"
1515

1616
# tests avoiding io-uring feature
17-
ci-test = " hack --feature-powerset --exclude=actix-rt --exclude=actix-server --exclude-features=io-uring test --workspace --lib --tests --no-fail-fast -- --nocapture"
18-
ci-test-rt = " hack --feature-powerset --exclude-features=io-uring test --package=actix-rt --lib --tests --no-fail-fast -- --nocapture"
19-
ci-test-server = "hack --feature-powerset --exclude-features=io-uring test --package=actix-server --lib --tests --no-fail-fast -- --nocapture"
17+
ci-test = "hack --feature-powerset --exclude-features=io-uring test --lib --tests --no-fail-fast -- --nocapture"
2018

2119
# tests avoiding io-uring feature on Windows
22-
ci-test-win = " hack --feature-powerset --depth 2 --exclude=actix-rt --exclude=actix-server --exclude-features=io-uring test --workspace --lib --tests --no-fail-fast -- --nocapture"
23-
ci-test-rt-win = " hack --feature-powerset --depth 2 --exclude-features=io-uring test --package=actix-rt --lib --tests --no-fail-fast -- --nocapture"
24-
ci-test-server-win = "hack --feature-powerset --depth 2 --exclude-features=io-uring test --package=actix-server --lib --tests --no-fail-fast -- --nocapture"
20+
ci-test-win = "hack --feature-powerset --depth 2 --exclude-features=io-uring test --lib --tests --no-fail-fast -- --nocapture"
2521

2622
# test with io-uring feature
27-
ci-test-rt-linux = " hack --feature-powerset test --package=actix-rt --lib --tests --no-fail-fast -- --nocapture"
28-
ci-test-server-linux = "hack --feature-powerset test --package=actix-server --lib --tests --no-fail-fast -- --nocapture"
29-
30-
# test lower msrv
31-
ci-test-lower-msrv = "hack --workspace --exclude=actix-server --exclude=actix-tls --feature-powerset test --lib --tests --no-fail-fast -- --nocapture"
23+
ci-test-linux = " hack --feature-powerset test --lib --tests --no-fail-fast -- --nocapture"

.github/workflows/ci-master.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,11 @@ jobs:
101101
if: >
102102
matrix.target.os != 'ubuntu-latest'
103103
&& matrix.target.triple != 'x86_64-pc-windows-gnu'
104-
run: |
105-
cargo ci-test
106-
cargo ci-test-rt
107-
cargo ci-test-server
104+
run: cargo ci-test
108105
- name: tests
109106
if: matrix.target.os == 'ubuntu-latest'
110107
run: |
111-
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-rt-linux && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-server-linux"
108+
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-linux"
112109
113110
- name: Clear the cargo caches
114111
run: |

.github/workflows/ci.yml

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu }
1919
- { name: Windows (32-bit), os: windows-latest, triple: i686-pc-windows-msvc }
2020
version:
21-
- 1.52.0 # MSRV for -server and -tls
21+
- 1.57.0
2222
- stable
2323

2424
name: ${{ matrix.target.name }} / ${{ matrix.version }}
@@ -77,10 +77,6 @@ jobs:
7777
uses: actions-rs/cargo@v1
7878
with: { command: generate-lockfile }
7979

80-
- name: Tweak lockfile
81-
run: |
82-
cargo update -p=native-tls --precise=0.2.8
83-
8480
- name: check lib
8581
if: >
8682
matrix.target.os != 'ubuntu-latest'
@@ -110,59 +106,16 @@ jobs:
110106

111107
- name: tests
112108
if: matrix.target.os == 'macos-latest'
113-
run: |
114-
cargo ci-test
115-
cargo ci-test-rt
116-
cargo ci-test-server
109+
run: cargo ci-test
117110
- name: tests
118111
if: >
119112
matrix.target.os == 'windows-latest'
120113
&& matrix.target.triple != 'x86_64-pc-windows-gnu'
121-
run: |
122-
cargo ci-test-win
123-
cargo ci-test-rt-win
124-
cargo ci-test-server-win
114+
run: cargo ci-test-win
125115
- name: tests
126116
if: matrix.target.os == 'ubuntu-latest'
127117
run: |
128-
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-rt-linux && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-server-linux"
129-
130-
- name: Clear the cargo caches
131-
run: |
132-
cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean
133-
cargo-cache
134-
135-
build_and_test_lower_msrv:
136-
name: Linux / 1.49 (lower MSRV)
137-
runs-on: ubuntu-latest
138-
steps:
139-
- uses: actions/checkout@v2
140-
141-
- name: Install 1.49.0 # MSRV for all but -server and -tls
142-
uses: actions-rs/toolchain@v1
143-
with:
144-
toolchain: 1.49.0-x86_64-unknown-linux-gnu
145-
profile: minimal
146-
override: true
147-
148-
- name: Install cargo-hack
149-
uses: actions-rs/cargo@v1
150-
with:
151-
command: install
152-
args: cargo-hack
153-
154-
- name: Generate Cargo.lock
155-
uses: actions-rs/cargo@v1
156-
with: { command: generate-lockfile }
157-
158-
- name: Tweak lockfile
159-
run: |
160-
cargo update -p=rustls --precise=0.20.2
161-
cargo update -p=native-tls --precise=0.2.8
162-
163-
- name: tests
164-
run: |
165-
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=1.49 cargo ci-test-lower-msrv"
118+
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test && RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo ci-test-linux"
166119
167120
- name: Clear the cargo caches
168121
run: |

actix-codec/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changes
22

33
## Unreleased - 2022-xx-xx
4+
- Minimum supported Rust version (MSRV) is now 1.57.
45

56

67
## 0.5.1 - 2022-03-15

actix-macros/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changes
22

33
## Unreleased - 2022-xx-xx
4-
- Minimum supported Rust version (MSRV) is now 1.49.
4+
- Minimum supported Rust version (MSRV) is now 1.57.
55

66

77
## 0.2.3 - 2021-10-19

actix-rt/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased - 2022-xx-xx
44
- Add `#[track_caller]` attribute to `spawn` functions and methods. [#454]
5+
- Minimum supported Rust version (MSRV) is now 1.57.
56

67
[#454]: https://github.com/actix/actix-net/pull/454
78

actix-server/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changes
22

33
## Unreleased - 2022-xx-xx
4+
- Minimum supported Rust version (MSRV) is now 1.57.
45

56

67
## 2.1.1 - 2022-03-09

actix-server/src/accept.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct ServerSocketInfo {
2424
timeout: Option<actix_rt::time::Instant>,
2525
}
2626

27-
/// poll instance of the server.
27+
/// Poll instance of the server.
2828
pub(crate) struct Accept {
2929
poll: Poll,
3030
waker_queue: WakerQueue,
@@ -161,11 +161,13 @@ impl Accept {
161161
// a loop that would try to drain the command channel. It's yet unknown
162162
// if it's necessary/good practice to actively drain the waker queue.
163163
loop {
164-
// take guard with every iteration so no new interest can be added
165-
// until the current task is done.
164+
// Take guard with every iteration so no new interests can be added until the current
165+
// task is done. Take care not to take the guard again inside this loop.
166166
let mut guard = self.waker_queue.guard();
167+
168+
#[allow(clippy::significant_drop_in_scrutinee)]
167169
match guard.pop_front() {
168-
// worker notify it becomes available.
170+
// Worker notified it became available.
169171
Some(WakerInterest::WorkerAvailable(idx)) => {
170172
drop(guard);
171173

@@ -176,7 +178,7 @@ impl Accept {
176178
}
177179
}
178180

179-
// a new worker thread is made and it's handle would be added to Accept
181+
// A new worker thread has been created so store its handle.
180182
Some(WakerInterest::Worker(handle)) => {
181183
drop(guard);
182184

actix-service/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changes
22

33
## Unreleased - 2022-xx-xx
4-
- Minimum supported Rust version (MSRV) is now 1.49.
4+
- Minimum supported Rust version (MSRV) is now 1.57.
55

66

77
## 2.0.2 - 2021-12-18

actix-tls/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changes
22

33
## Unreleased - 2022-xx-xx
4+
- Minimum supported Rust version (MSRV) is now 1.57.
45

56

67
## 3.0.4 - 2022-03-15

0 commit comments

Comments
 (0)