@@ -94,14 +94,14 @@ if [[ "$HOST_PLATFORM" != *windows* ]]; then
94
94
95
95
DOWNLOAD_ELECTRS_AND_BITCOIND
96
96
97
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-blocking
98
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-blocking
99
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-async
100
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-async
101
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features esplora-async-https
102
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features esplora-async-https
103
- RUSTFLAGS=" --cfg no_download" cargo test --verbose --color always --features electrum
104
- RUSTFLAGS=" --cfg no_download" cargo check --verbose --color always --features electrum
97
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-blocking
98
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-blocking
99
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-async
100
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-async
101
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features esplora-async-https
102
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features esplora-async-https
103
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo test --verbose --color always --features electrum
104
+ RUSTFLAGS=" $RUSTFLAGS --cfg no_download" cargo check --verbose --color always --features electrum
105
105
106
106
popd
107
107
fi
125
125
echo -e " \n\nBuilding with all Log-Limiting features"
126
126
pushd lightning
127
127
grep ' ^max_level_' Cargo.toml | awk ' { print $1 }' | while read -r FEATURE; do
128
- cargo check --verbose --color always --features " $FEATURE "
128
+ RUSTFLAGS= " $RUSTFLAGS -A unused_variables -A unused_macros -A unused_imports -A dead_code " cargo check --verbose --color always --features " $FEATURE "
129
129
done
130
130
popd
131
131
138
138
139
139
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
140
140
# check if there is a conflict between no-std and the c_bindings cfg
141
- RUSTFLAGS=" --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
141
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
142
142
done
143
- RUSTFLAGS=" --cfg=c_bindings" cargo test --verbose --color always
143
+ RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always
144
144
145
145
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
146
146
pushd lightning
@@ -174,5 +174,5 @@ if [ -f "$(which arm-none-eabi-gcc)" ]; then
174
174
fi
175
175
176
176
echo -e " \n\nTest cfg-flag builds"
177
- RUSTFLAGS=" $RUSTFLAGS --cfg=taproot" cargo test --verbose --color always -p lightning
178
- RUSTFLAGS=" $RUSTFLAGS --cfg=async_signing" cargo test --verbose --color always -p lightning
177
+ RUSTFLAGS=" --cfg=taproot" cargo test --verbose --color always -p lightning
178
+ RUSTFLAGS=" --cfg=async_signing" cargo test --verbose --color always -p lightning
0 commit comments