]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Pin `idna_adapter` to fix MSRV
authorElias Rohrer <dev@tnull.de>
Mon, 4 Nov 2024 15:06:41 +0000 (16:06 +0100)
committerElias Rohrer <dev@tnull.de>
Mon, 4 Nov 2024 15:06:41 +0000 (16:06 +0100)
ci/ci-tests.sh

index e47643f17c58efe334a2f0282201d16a92a70225..59aa0b6f8f5ae4f0d5041b576be4eb097bd19d79 100755 (executable)
@@ -73,6 +73,10 @@ cargo test -p lightning-block-sync --verbose --color always --features rpc-clien
 cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
 
 if [[ "$HOST_PLATFORM" != *windows* ]]; then
+       # url 2.5.3 switched to idna 1.0.3 and ICU4X, which requires rustc 1.67 or newer.
+       # Here we opt to keep using unicode-rs by pinning idna_adapter as described here: https://docs.rs/crate/idna_adapter/1.2.0
+       [ "$RUSTC_MINOR_VERSION" -lt 67 ] && cargo update -p idna_adapter --precise "1.1.0" --verbose
+
        echo -e "\n\nChecking Transaction Sync Clients with features."
        cargo check -p lightning-transaction-sync --verbose --color always --features esplora-blocking
        cargo check -p lightning-transaction-sync --verbose --color always --features esplora-async