@@ -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.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
5359
5460echo -e " \n\nTesting upgrade from prior versions of LDK"
5561pushd 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
5765cargo test
5866popd
@@ -111,6 +119,8 @@ cargo test -p lightning-invoice --verbose --color always --no-default-features -
111119echo -e " \n\nTesting no_std build on a downstream no-std crate"
112120# check no-std compatibility across dependencies
113121pushd 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
114124cargo check --verbose --color always
115125[ " $CI_MINIMIZE_DISK_USAGE " != " " ] && cargo clean
116126popd
124134
125135if [ -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