From b5f553d8662836e2bf4cd8fc134e5538782b37f6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 12 Dec 2024 16:09:07 +1100 Subject: [PATCH] hashes: Bump version to 0.16.0 We need to do a quick release because it turns out I was wrong in thinking that making `hex` an optional dependency is not a breaking change. ``` the package `bitcoin` depends on `bitcoin_hashes`, with features: `hex` but `bitcoin_hashes` does not have these features. It has a required dependency with that name, but only optional dependencies can be used as features. ``` Add a changelog, bump the version, depend on the new version repo wide, and update the lock files - like its our job. --- Cargo-minimal.lock | 8 ++++---- Cargo-recent.lock | 8 ++++---- base58/Cargo.toml | 2 +- bitcoin/Cargo.toml | 2 +- hashes/CHANGELOG.md | 6 ++++++ hashes/Cargo.toml | 2 +- primitives/Cargo.toml | 2 +- 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index 945f3d091..4ca2d3d5b 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -25,7 +25,7 @@ name = "base58ck" version = "0.2.0" dependencies = [ "bitcoin-internals", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", ] @@ -64,7 +64,7 @@ dependencies = [ "bitcoin-io", "bitcoin-primitives", "bitcoin-units", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "bitcoinconsensus", "hex-conservative 0.3.0", "hex_lit", @@ -116,7 +116,7 @@ dependencies = [ "bitcoin-internals", "bitcoin-io", "bitcoin-units", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", "mutagen", "ordered", @@ -146,7 +146,7 @@ dependencies = [ [[package]] name = "bitcoin_hashes" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bitcoin-io", "hex-conservative 0.3.0", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index 1be64cc07..c4fd9762b 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -25,7 +25,7 @@ name = "base58ck" version = "0.2.0" dependencies = [ "bitcoin-internals", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", ] @@ -63,7 +63,7 @@ dependencies = [ "bitcoin-io", "bitcoin-primitives", "bitcoin-units", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "bitcoinconsensus", "hex-conservative 0.3.0", "hex_lit", @@ -115,7 +115,7 @@ dependencies = [ "bitcoin-internals", "bitcoin-io", "bitcoin-units", - "bitcoin_hashes 0.15.0", + "bitcoin_hashes 0.16.0", "hex-conservative 0.3.0", "mutagen", "ordered", @@ -145,7 +145,7 @@ dependencies = [ [[package]] name = "bitcoin_hashes" -version = "0.15.0" +version = "0.16.0" dependencies = [ "bitcoin-io", "hex-conservative 0.3.0", diff --git a/base58/Cargo.toml b/base58/Cargo.toml index 4cc082301..06000bcbf 100644 --- a/base58/Cargo.toml +++ b/base58/Cargo.toml @@ -18,7 +18,7 @@ std = ["alloc", "hashes/std", "internals/std"] alloc = ["hashes/alloc", "internals/alloc"] [dependencies] -hashes = { package = "bitcoin_hashes", version = "0.15.0", default-features = false } +hashes = { package = "bitcoin_hashes", version = "0.16.0", default-features = false } internals = { package = "bitcoin-internals", version = "0.4.0" } [dev-dependencies] diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 0429d0a6f..46e1e4c12 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -27,7 +27,7 @@ arbitrary = ["dep:arbitrary", "units/arbitrary", "primitives/arbitrary"] [dependencies] base58 = { package = "base58ck", version = "0.2.0", default-features = false, features = ["alloc"] } bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] } -hashes = { package = "bitcoin_hashes", version = "0.15.0", default-features = false, features = ["alloc", "bitcoin-io", "hex"] } +hashes = { package = "bitcoin_hashes", version = "0.16.0", default-features = false, features = ["alloc", "bitcoin-io", "hex"] } hex = { package = "hex-conservative", version = "0.3.0", default-features = false, features = ["alloc"] } internals = { package = "bitcoin-internals", version = "0.4.0", features = ["alloc"] } io = { package = "bitcoin-io", version = "0.2.0", default-features = false, features = ["alloc"] } diff --git a/hashes/CHANGELOG.md b/hashes/CHANGELOG.md index eccea78f9..ea31a9be8 100644 --- a/hashes/CHANGELOG.md +++ b/hashes/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.16.0 - 2024-12-12 + +* Make `hex-conservative` an optional dependency [#3611](https://github.com/rust-bitcoin/rust-bitcoin/pull/3611) +* Bump `hex-conservative` to `v0.3.0` [#3543](https://github.com/rust-bitcoin/rust-bitcoin/pull/3543) +* Hide error internals [#3579](https://github.com/rust-bitcoin/rust-bitcoin/pull/3579) + # 0.15.0 - 2024-10-16 This release is massive. The biggest visable changes are to the `Hash` trait, which has mostly been replaced diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index 7cdf06300..c34f2f04e 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitcoin_hashes" -version = "0.15.0" +version = "0.16.0" authors = ["Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/rust-bitcoin" diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index 76ca9f6c4..3d75906eb 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -22,7 +22,7 @@ serde = ["dep:serde", "hashes/serde", "internals/serde", "units/serde", "alloc"] arbitrary = ["dep:arbitrary", "units/arbitrary"] [dependencies] -hashes = { package = "bitcoin_hashes", version = "0.15.0", default-features = false, features = ["bitcoin-io", "hex"] } +hashes = { package = "bitcoin_hashes", version = "0.16.0", default-features = false, features = ["bitcoin-io", "hex"] } hex = { package = "hex-conservative", version = "0.3.0", default-features = false } internals = { package = "bitcoin-internals", version = "0.4.0" } io = { package = "bitcoin-io", version = "0.2.0", default-features = false }