Skip to content

Commit 7f0fb7d

Browse files
committed
Pin tokio in CI to fix MSRV
The recently released `tokio` 1.39 bumped their MSRV to rustc 1.70. Here, we pin the `tokio` version to 1.38 for users that require to maintain our MSRV of rustc 1.63.
1 parent 50d21b7 commit 7f0fb7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/ci-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')"
88
# which we do here.
99
# Further crates which appear only as dev-dependencies are pinned further down.
1010
function PIN_RELEASE_DEPS {
11+
# Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0
12+
[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose
13+
1114
return 0 # Don't fail the script if our rustc is higher than the last check
1215
}
1316

0 commit comments

Comments
 (0)