Skip to content

Commit a1086b3

Browse files
committed
update MSRV to Rust 1.70, new MSRV policy
Maintaining compat with older Rust versions is such a hassle.
1 parent 6260da7 commit a1086b3

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- name: Lint (rustfmt)
2626
run: cargo xfmt --check
2727
- name: Install cargo readme
28-
uses: baptiste0928/cargo-install@2cfb0024938d23011106cbf127b393bc83fddba1 # v1
28+
uses: taiki-e/install-action@672949f0e99e12c1a48510fa548e812f6835397f # v2
2929
with:
30-
crate: cargo-readme
30+
tool: cargo-readme
3131
- name: Run cargo readme
3232
run: ./scripts/regenerate-readmes.sh
3333
- name: Check for differences
@@ -38,9 +38,9 @@ jobs:
3838
runs-on: ${{ matrix.os }}
3939
strategy:
4040
matrix:
41-
os: [ ubuntu-latest ]
42-
# 1.56 is the MSRV
43-
rust-version: [ 1.56, stable ]
41+
os: [ubuntu-latest]
42+
# 1.70 is the MSRV
43+
rust-version: ["1.70", stable]
4444
fail-fast: false
4545
env:
4646
RUSTFLAGS: -D warnings

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88
repository = "https://github.com/nextest-rs/future-queue"
99
documentation = "https://docs.rs/future-queue"
1010
resolver = "2"
11-
rust-version = "1.56"
11+
rust-version = "1.70"
1212
categories = ["asynchronous"]
1313
keywords = ["stream", "futures", "async", "buffer_unordered"]
1414

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* with global limits
1515
* and with an optional group specified for each future, with its own limits.
1616

17-
This crate is part of the [nextest organization](https://github.com/nextest-rs) on GitHub, and is
18-
designed to serve the needs of [cargo-nextest](https://nexte.st).
17+
This crate is part of the [nextest organization](https://github.com/nextest-rs) on GitHub, and
18+
is designed to serve the needs of [cargo-nextest](https://nexte.st).
1919

2020
## Motivation
2121

@@ -25,8 +25,8 @@ this adaptor takes a stream of futures[^1], and executes all the futures limited
2525
amount of concurrency.
2626

2727
* Futures are started in the order the stream returns them in.
28-
* Once started, futures are polled simultaneously, and completed future outputs are returned
29-
in arbitrary order (hence the `unordered`).
28+
* Once started, futures are polled simultaneously, and completed future outputs are returned in
29+
arbitrary order (hence the `unordered`).
3030

3131
Common use cases for `buffer_unordered` include:
3232

@@ -99,10 +99,10 @@ except it is possible to specify an optional *group* for each future. Each group
9999
weight, and a future will only be scheduled if both the maximum weight and the group weight
100100
aren't exceeded.
101101

102-
The adaptor is as fair as possible under the given constraints: it will schedule futures in
103-
the order they're returned by the stream, without doing any reordering based on weight. When
104-
a future from a group completes, queued up futures in this group will be preferentially
105-
scheduled before any other futures from the provided stream.
102+
The adaptor is as fair as possible under the given constraints: it will schedule futures in the
103+
order they're returned by the stream, without doing any reordering based on weight. When a
104+
future from a group completes, queued up futures in this group will be preferentially scheduled
105+
before any other futures from the provided stream.
106106

107107
Like with [`future_queue`](StreamExt::future_queue):
108108

@@ -140,11 +140,11 @@ assert_eq!(queue.next().await, None);
140140

141141
## Minimum supported Rust version (MSRV)
142142

143-
The minimum supported Rust version is **Rust 1.56.**
143+
The minimum supported Rust version is **Rust 1.70.** At any time, at least the last six months
144+
of Rust stable releases are supported.
144145

145-
The MSRV will likely not change in the medium term, but while this crate is a pre-release
146-
(0.x.x) it may have its MSRV bumped in a patch release. Once this crate has reached 1.x, any
147-
MSRV bump will be accompanied with a new minor version.
146+
While this crate is a pre-release (0.x.x) it may have its MSRV bumped in a patch release. Once
147+
this crate has reached 1.x, any MSRV bump will be accompanied with a new minor version.
148148

149149
## Notes
150150

src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//! * with global limits
1111
//! * and with an optional group specified for each future, with its own limits.
1212
//!
13-
//! This crate is part of the [nextest organization](https://github.com/nextest-rs) on GitHub, and is
14-
//! designed to serve the needs of [cargo-nextest](https://nexte.st).
13+
//! This crate is part of the [nextest organization](https://github.com/nextest-rs) on GitHub, and
14+
//! is designed to serve the needs of [cargo-nextest](https://nexte.st).
1515
//!
1616
//! # Motivation
1717
//!
@@ -21,8 +21,8 @@
2121
//! amount of concurrency.
2222
//!
2323
//! * Futures are started in the order the stream returns them in.
24-
//! * Once started, futures are polled simultaneously, and completed future outputs are returned
25-
//! in arbitrary order (hence the `unordered`).
24+
//! * Once started, futures are polled simultaneously, and completed future outputs are returned in
25+
//! arbitrary order (hence the `unordered`).
2626
//!
2727
//! Common use cases for `buffer_unordered` include:
2828
//!
@@ -97,10 +97,10 @@
9797
//! weight, and a future will only be scheduled if both the maximum weight and the group weight
9898
//! aren't exceeded.
9999
//!
100-
//! The adaptor is as fair as possible under the given constraints: it will schedule futures in
101-
//! the order they're returned by the stream, without doing any reordering based on weight. When
102-
//! a future from a group completes, queued up futures in this group will be preferentially
103-
//! scheduled before any other futures from the provided stream.
100+
//! The adaptor is as fair as possible under the given constraints: it will schedule futures in the
101+
//! order they're returned by the stream, without doing any reordering based on weight. When a
102+
//! future from a group completes, queued up futures in this group will be preferentially scheduled
103+
//! before any other futures from the provided stream.
104104
//!
105105
//! Like with [`future_queue`](StreamExt::future_queue):
106106
//!
@@ -140,11 +140,11 @@
140140
//!
141141
//! # Minimum supported Rust version (MSRV)
142142
//!
143-
//! The minimum supported Rust version is **Rust 1.56.**
143+
//! The minimum supported Rust version is **Rust 1.70.** At any time, at least the last six months
144+
//! of Rust stable releases are supported.
144145
//!
145-
//! The MSRV will likely not change in the medium term, but while this crate is a pre-release
146-
//! (0.x.x) it may have its MSRV bumped in a patch release. Once this crate has reached 1.x, any
147-
//! MSRV bump will be accompanied with a new minor version.
146+
//! While this crate is a pre-release (0.x.x) it may have its MSRV bumped in a patch release. Once
147+
//! this crate has reached 1.x, any MSRV bump will be accompanied with a new minor version.
148148
//!
149149
//! # Notes
150150
//!

0 commit comments

Comments
 (0)