Skip to content

Commit 0596cb2

Browse files
committed
Update pins for syn MSRV breakage
1 parent 16a27b3 commit 0596cb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/ci-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ 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 1.0.42, the `quote` crate has an MSRV of rustc 1.68
12+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
13+
1114
# Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0
1215
[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose
1316

@@ -111,6 +114,7 @@ cargo test -p lightning-invoice --verbose --color always --no-default-features -
111114
echo -e "\n\nTesting no_std build on a downstream no-std crate"
112115
# check no-std compatibility across dependencies
113116
pushd no-std-check
117+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
114118
cargo check --verbose --color always
115119
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
116120
popd
@@ -124,6 +128,7 @@ popd
124128

125129
if [ -f "$(which arm-none-eabi-gcc)" ]; then
126130
pushd no-std-check
131+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
127132
cargo build --target=thumbv7m-none-eabi
128133
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
129134
popd

0 commit comments

Comments
 (0)