@@ -30,43 +30,44 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
30
30
[ " $RUSTC_MINOR_VERSION " -lt 56 ] && cargo update -p quote --precise " 1.0.30" --verbose
31
31
32
32
# 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
34
37
35
38
# The proc-macro2 crate switched to Rust edition 2021 starting with v1.0.66, i.e., has MSRV of 1.56
36
39
[ " $RUSTC_MINOR_VERSION " -lt 56 ] && cargo update -p proc-macro2 --precise " 1.0.65" --verbose
37
40
38
41
# The memchr crate switched to an MSRV of 1.60 starting with v2.6.0
39
42
[ " $RUSTC_MINOR_VERSION " -lt 60 ] && cargo update -p memchr --precise " 2.5.0" --verbose
40
43
41
- [ " $LDK_COVERAGE_BUILD " != " " ] && export RUSTFLAGS=" -C link-dead-code"
42
-
43
44
export RUST_BACKTRACE=1
44
45
45
46
echo -e " \n\nBuilding and testing all workspace crates..."
46
47
cargo test --verbose --color always
47
- cargo build --verbose --color always
48
+ cargo check --verbose --color always
48
49
49
50
echo -e " \n\nBuilding and testing Block Sync Clients with features"
50
51
pushd lightning-block-sync
51
52
cargo 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
53
54
cargo 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
55
56
cargo 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
57
58
cargo 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
59
60
popd
60
61
61
62
if [[ $RUSTC_MINOR_VERSION -gt 67 && " $HOST_PLATFORM " != * windows* ]]; then
62
63
echo -e " \n\nBuilding and testing Transaction Sync Clients with features"
63
64
pushd lightning-transaction-sync
64
65
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
66
67
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
68
69
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
70
71
popd
71
72
fi
72
73
92
93
echo -e " \n\nBuilding with all Log-Limiting features"
93
94
pushd lightning
94
95
grep ' ^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 "
96
97
done
97
98
popd
98
99
0 commit comments