X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ci%2Fci-tests.sh;h=7a16b749200de77219c7268eb79fe793fe0d1bfb;hb=8cffeb6dba6a953ecaa9a73cb8779dc0c6d69da4;hp=35acd6bad168bafa124cf3d5ccdb5b621a734b7e;hpb=4ab32f9c2bb6beda404864715d1fe21efcbc39cd;p=rust-lightning diff --git a/ci/ci-tests.sh b/ci/ci-tests.sh index 35acd6bad..7a16b7492 100755 --- a/ci/ci-tests.sh +++ b/ci/ci-tests.sh @@ -29,6 +29,9 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace # The quote crate switched to Rust edition 2021 starting with v1.0.31, i.e., has MSRV of 1.56 [ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p quote --precise "1.0.30" --verbose +# The proc-macro2 crate switched to Rust edition 2021 starting with v1.0.66, i.e., has MSRV of 1.56 +[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p proc-macro2 --precise "1.0.65" --verbose + [ "$LDK_COVERAGE_BUILD" != "" ] && export RUSTFLAGS="-C link-dead-code" export RUST_BACKTRACE=1 @@ -74,7 +77,12 @@ popd echo -e "\n\nTesting no-std build on a downstream no-std crate" # check no-std compatibility across dependencies pushd no-std-check -cargo check --verbose --color always --features lightning-transaction-sync +if [[ $RUSTC_MINOR_VERSION -gt 67 ]]; then + # lightning-transaction-sync's MSRV is 1.67 + cargo check --verbose --color always --features lightning-transaction-sync +else + cargo check --verbose --color always +fi popd # Test that we can build downstream code with only the "release pins".