From: Elias Rohrer Date: Thu, 1 Aug 2024 16:51:53 +0000 (-0500) Subject: Pin `tokio` in CI to fix MSRV X-Git-Tag: v0.0.124-beta~31^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=3566b98b75220bdc4e02c71badfaa21cbcffdc8f;p=rust-lightning 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. --- 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 }