From 3566b98b75220bdc4e02c71badfaa21cbcffdc8f Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 1 Aug 2024 11:51:53 -0500 Subject: [PATCH] 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. --- ci/ci-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/ci-tests.sh b/ci/ci-tests.sh index d0ba7c7fe..b99ae820a 100755 --- a/ci/ci-tests.sh +++ b/ci/ci-tests.sh @@ -8,6 +8,9 @@ HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')" # which we do here. # Further crates which appear only as dev-dependencies are pinned further down. function PIN_RELEASE_DEPS { + # Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0 + [ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose + return 0 # Don't fail the script if our rustc is higher than the last check } -- 2.39.5