From 58033cf14e8ceac74344ce8e0b8413ee25176d0d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sun, 19 Mar 2023 12:15:56 +1100 Subject: [PATCH] pin serde dep on 1.47 --- bitcoin/contrib/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitcoin/contrib/test.sh b/bitcoin/contrib/test.sh index 1532c21c..c3b8e914 100755 --- a/bitcoin/contrib/test.sh +++ b/bitcoin/contrib/test.sh @@ -31,6 +31,12 @@ if cargo --version | grep "1\.41"; then cargo update -p syn --precise 1.0.107 fi +# Pin dependencies as above (required for no-std tests that use Rust 1.47 toolchain). +if cargo --version | grep "1\.47"; then + cargo update -p serde --precise 1.0.156 + cargo update -p syn --precise 1.0.107 +fi + # We should not have any duplicate dependencies. This catches mistakes made upgrading dependencies # in one crate and not in another (e.g. upgrade bitcoin_hashes in bitcoin but not in secp). duplicate_dependencies=$(