Skip to content

Commit c379f7e

Browse files
committed
Update pins for syn MSRV breakage
1 parent 36bdde9 commit c379f7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/ci-tests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[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 2.0.107, the `syn` crate has an MSRV of rustc 1.68
12+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.106" --verbose
13+
14+
# Starting with version 1.0.42, the `quote` crate has an MSRV of rustc 1.68
15+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
16+
1117
# Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0
1218
[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose
1319

@@ -53,6 +59,8 @@ done
5359

5460
echo -e "\n\nTesting upgrade from prior versions of LDK"
5561
pushd lightning-tests
62+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.106" --verbose
63+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
5664
[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p regex --precise "1.9.6" --verbose
5765
cargo test
5866
popd

0 commit comments

Comments
 (0)