Skip to content

Commit 85a910a

Browse files
committed
Pin syn and tokio to fix CI
The `syn` package recently got updated to 2.0.* which bumped MSRV to rustc 1.56, which broke our CI. Also, `tokio` got updated to 1.27.0, which bumped MSRV from 1.49 to 1.56. Here we pin `tokio` and `syn` accordingly to unbreak CI.
1 parent 3c02e50 commit 85a910a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/ci-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ set -eox pipefail
44
RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }')
55
HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')"
66

7-
# Tokio MSRV on versions newer than 1.14 is rustc 1.49
7+
# Tokio MSRV on versions 1.17 through 1.26 is rustc 1.49. Above 1.26 MSRV is 1.56.
88
[ "$RUSTC_MINOR_VERSION" -lt 49 ] && cargo update -p tokio --precise "1.14.0" --verbose
9+
[[ "$RUSTC_MINOR_VERSION" -gt 48 && "$RUSTC_MINOR_VERSION" -lt 56 ]] && cargo update -p tokio --precise "1.26.0" --verbose
10+
# Syn MSRV is rustc 1.31 for versions 1.0.* and rustc 1.56 for 2.0.*.
11+
[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p syn --precise "1.0.109" --verbose
912
[ "$LDK_COVERAGE_BUILD" != "" ] && export RUSTFLAGS="-C link-dead-code"
1013

1114
export RUST_BACKTRACE=1

0 commit comments

Comments
 (0)