@@ -30,43 +30,44 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
3030[ " $RUSTC_MINOR_VERSION " -lt 56 ] && cargo update -p quote --precise " 1.0.30" --verbose
3131
3232# The syn crate depends on too-new proc-macro2 starting with v2.0.33, i.e., has MSRV of 1.56
33- [ " $RUSTC_MINOR_VERSION " -lt 56 ] && cargo update -p syn:2.0.33 --precise " 2.0.32" --verbose
33+ if [ " $RUSTC_MINOR_VERSION " -lt 56 ]; then
34+ SYN_2_DEP=$( grep -o ' "syn 2.*' Cargo.lock | tr -d ' ",' | tr ' ' ' :' )
35+ cargo update -p " $SYN_2_DEP " --precise " 2.0.32" --verbose
36+ fi
3437
3538# The proc-macro2 crate switched to Rust edition 2021 starting with v1.0.66, i.e., has MSRV of 1.56
3639[ " $RUSTC_MINOR_VERSION " -lt 56 ] && cargo update -p proc-macro2 --precise " 1.0.65" --verbose
3740
3841# The memchr crate switched to an MSRV of 1.60 starting with v2.6.0
3942[ " $RUSTC_MINOR_VERSION " -lt 60 ] && cargo update -p memchr --precise " 2.5.0" --verbose
4043
41- [ " $LDK_COVERAGE_BUILD " != " " ] && export RUSTFLAGS=" -C link-dead-code"
42-
4344export RUST_BACKTRACE=1
4445
4546echo -e " \n\nBuilding and testing all workspace crates..."
4647cargo test --verbose --color always
47- cargo build --verbose --color always
48+ cargo check --verbose --color always
4849
4950echo -e " \n\nBuilding and testing Block Sync Clients with features"
5051pushd lightning-block-sync
5152cargo test --verbose --color always --features rest-client
52- cargo build --verbose --color always --features rest-client
53+ cargo check --verbose --color always --features rest-client
5354cargo test --verbose --color always --features rpc-client
54- cargo build --verbose --color always --features rpc-client
55+ cargo check --verbose --color always --features rpc-client
5556cargo test --verbose --color always --features rpc-client,rest-client
56- cargo build --verbose --color always --features rpc-client,rest-client
57+ cargo check --verbose --color always --features rpc-client,rest-client
5758cargo test --verbose --color always --features rpc-client,rest-client,tokio
58- cargo build --verbose --color always --features rpc-client,rest-client,tokio
59+ cargo check --verbose --color always --features rpc-client,rest-client,tokio
5960popd
6061
6162if [[ $RUSTC_MINOR_VERSION -gt 67 && " $HOST_PLATFORM " != * windows* ]]; then
6263 echo -e " \n\nBuilding and testing Transaction Sync Clients with features"
6364 pushd lightning-transaction-sync
6465 cargo test --verbose --color always --features esplora-blocking
65- cargo build --verbose --color always --features esplora-blocking
66+ cargo check --verbose --color always --features esplora-blocking
6667 cargo test --verbose --color always --features esplora-async
67- cargo build --verbose --color always --features esplora-async
68+ cargo check --verbose --color always --features esplora-async
6869 cargo test --verbose --color always --features esplora-async-https
69- cargo build --verbose --color always --features esplora-async-https
70+ cargo check --verbose --color always --features esplora-async-https
7071 popd
7172fi
7273
9293echo -e " \n\nBuilding with all Log-Limiting features"
9394pushd lightning
9495grep ' ^max_level_' Cargo.toml | awk ' { print $1 }' | while read -r FEATURE; do
95- cargo build --verbose --color always --features " $FEATURE "
96+ cargo check --verbose --color always --features " $FEATURE "
9697done
9798popd
9899
0 commit comments