Skip to content

Commit bad3b46

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/ci-tests.sh

Lines changed: 10 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.108, the `syn` crate has an MSRV of rustc 1.68
12+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.107" --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

@@ -111,6 +117,8 @@ cargo test -p lightning-invoice --verbose --color always --no-default-features -
111117
echo -e "\n\nTesting no_std build on a downstream no-std crate"
112118
# check no-std compatibility across dependencies
113119
pushd no-std-check
120+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.107" --verbose
121+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
114122
cargo check --verbose --color always
115123
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
116124
popd
@@ -124,6 +132,8 @@ popd
124132

125133
if [ -f "$(which arm-none-eabi-gcc)" ]; then
126134
pushd no-std-check
135+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p syn --precise "2.0.107" --verbose
136+
[ "$RUSTC_MINOR_VERSION" -lt 68 ] && cargo update -p quote --precise "1.0.41" --verbose
127137
cargo build --target=thumbv7m-none-eabi
128138
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
129139
popd

0 commit comments

Comments
 (0)