From eaaa3d0d67ae18e81ec79d1f72c2aa0f4b76238f Mon Sep 17 00:00:00 2001 From: mcroad Date: Mon, 25 Apr 2022 11:14:41 -0500 Subject: [PATCH 1/2] [backport] Fix `no_std` MSRV --- .gitignore | 1 + README.md | 3 ++- src/util/bip32.rs | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bd1795fa1e..a8920838f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ target Cargo.lock +dep_test #fuzz fuzz/hfuzz_target diff --git a/README.md b/README.md index f3c0a458c7..cd0ae7f1bd 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,8 @@ please join us in ## Minimum Supported Rust Version (MSRV) -This library should always compile with any combination of features on **Rust 1.29**. +This library should always compile with any combination of features (minus +`no-std`) on **Rust 1.29** or **Rust 1.47** with `no-std`. Because some dependencies have broken the build in minor/patch releases, to compile with 1.29.0 you will need to run the following version-pinning command: diff --git a/src/util/bip32.rs b/src/util/bip32.rs index 65a973f5f3..611ee005ae 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -74,7 +74,8 @@ impl fmt::Debug for ExtendedPrivKey { .field("parent_fingerprint", &self.parent_fingerprint) .field("child_number", &self.child_number) .field("chain_code", &self.chain_code) - .finish_non_exhaustive() + .field("private_key", &"[SecretKey]") + .finish() } } From e45f6c720c3e6a97ec54d993ecdfc7b5fa0810e4 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Tue, 3 May 2022 23:00:28 +0000 Subject: [PATCH 2/2] bump version to 0.28.1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 25020b7111..d46b3482e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitcoin" -version = "0.28.0" +version = "0.28.1" authors = ["Andrew Poelstra "] license = "CC0-1.0" homepage = "https://github.com/rust-bitcoin/rust-bitcoin/"