Skip to content

Commit 52528c7

Browse files
committed
Update pins for syn MSRV breakage
1 parent ea8cb2b commit 52528c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci/ci-tests.sh

Lines changed: 12 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
@@ -111,6 +119,8 @@ cargo test -p lightning-invoice --verbose --color always --no-default-features -
111119
echo -e "\n\nTesting no_std build on a downstream no-std crate"
112120
# check no-std compatibility across dependencies
113121
pushd no-std-check
122+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.106" --verbose
123+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
114124
cargo check --verbose --color always
115125
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
116126
popd
@@ -124,6 +134,8 @@ popd
124134

125135
if [ -f "$(which arm-none-eabi-gcc)" ]; then
126136
pushd no-std-check
137+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.106" --verbose
138+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
127139
cargo build --target=thumbv7m-none-eabi
128140
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
129141
popd

0 commit comments

Comments
 (0)