@@ -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.
1010function 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 -
111117echo -e " \n\nTesting no_std build on a downstream no-std crate"
112118# check no-std compatibility across dependencies
113119pushd 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
114122cargo check --verbose --color always
115123[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
116124popd
124132
125133if [ -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