Skip to content

Commit

Permalink
hashes: Bump version to v0.14.0
Browse files Browse the repository at this point in the history
In preparation for release add a changlelog entry and bump the version.

I'm not 100% sure that this release is API breaking, dependencies
definitely changed. The rest might be only additives but I didn't bother
looking exactly because I think its better to bump the minor version and
err on the side of caution.

Note the hashes 0.13.0 dependency stays in the dependency graph because
of secp, we can update secp after releasing `hashes` then update the
secp dependency in `rust-bitcoin` thereby removing the `hashes v0.13.0`
dependency - phew.
  • Loading branch information
tcharding committed Mar 21, 2024
1 parent 6ff8505 commit 0ca5a43
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 15 deletions.
28 changes: 22 additions & 6 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ name = "base58ck"
version = "0.1.0"
dependencies = [
"bitcoin-internals",
"bitcoin_hashes",
"hex-conservative",
"bitcoin_hashes 0.14.0",
"hex-conservative 0.2.0",
]

[[package]]
Expand Down Expand Up @@ -56,9 +56,9 @@ dependencies = [
"bitcoin-internals",
"bitcoin-io",
"bitcoin-units",
"bitcoin_hashes",
"bitcoin_hashes 0.14.0",
"bitcoinconsensus",
"hex-conservative",
"hex-conservative 0.2.0",
"hex_lit",
"mutagen",
"ordered",
Expand Down Expand Up @@ -103,9 +103,19 @@ dependencies = [
[[package]]
name = "bitcoin_hashes"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b"
dependencies = [
"bitcoin-internals",
"hex-conservative 0.1.1",
]

[[package]]
name = "bitcoin_hashes"
version = "0.14.0"
dependencies = [
"bitcoin-io",
"hex-conservative",
"hex-conservative 0.2.0",
"schemars",
"serde",
"serde_json",
Expand Down Expand Up @@ -162,6 +172,12 @@ version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62aca2aba2d62b4a7f5b33f3712cb1b0692779a56fb510499d5c0aa594daeaf3"

[[package]]
name = "hex-conservative"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"

[[package]]
name = "hex-conservative"
version = "0.2.0"
Expand Down Expand Up @@ -356,7 +372,7 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5"
dependencies = [
"bitcoin_hashes",
"bitcoin_hashes 0.13.0",
"rand",
"secp256k1-sys",
"serde",
Expand Down
28 changes: 22 additions & 6 deletions Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ name = "base58ck"
version = "0.1.0"
dependencies = [
"bitcoin-internals",
"bitcoin_hashes",
"hex-conservative",
"bitcoin_hashes 0.14.0",
"hex-conservative 0.2.0",
]

[[package]]
Expand Down Expand Up @@ -55,9 +55,9 @@ dependencies = [
"bitcoin-internals",
"bitcoin-io",
"bitcoin-units",
"bitcoin_hashes",
"bitcoin_hashes 0.14.0",
"bitcoinconsensus",
"hex-conservative",
"hex-conservative 0.2.0",
"hex_lit",
"mutagen",
"ordered",
Expand Down Expand Up @@ -102,9 +102,19 @@ dependencies = [
[[package]]
name = "bitcoin_hashes"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b"
dependencies = [
"bitcoin-internals",
"hex-conservative 0.1.1",
]

[[package]]
name = "bitcoin_hashes"
version = "0.14.0"
dependencies = [
"bitcoin-io",
"hex-conservative",
"hex-conservative 0.2.0",
"schemars",
"serde",
"serde_json",
Expand Down Expand Up @@ -161,6 +171,12 @@ version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62aca2aba2d62b4a7f5b33f3712cb1b0692779a56fb510499d5c0aa594daeaf3"

[[package]]
name = "hex-conservative"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"

[[package]]
name = "hex-conservative"
version = "0.2.0"
Expand Down Expand Up @@ -345,7 +361,7 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5"
dependencies = [
"bitcoin_hashes",
"bitcoin_hashes 0.13.0",
"rand",
"secp256k1-sys",
"serde",
Expand Down
2 changes: 1 addition & 1 deletion base58/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc"] }
hashes = { package = "bitcoin_hashes", version = "0.14.0", default-features = false, features = ["alloc"] }
internals = { package = "bitcoin-internals", version = "0.2.0" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
base58 = { package = "base58ck", version = "0.1.0", default-features = false }
bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] }
hashes = { package = "bitcoin_hashes", version = "0.14.0", default-features = false, features = ["alloc", "io"] }
hex = { package = "hex-conservative", version = "0.2.0", default-features = false, features = ["alloc"] }
hex_lit = "0.1.1"
internals = { package = "bitcoin-internals", version = "0.2.0" }
Expand Down
4 changes: 4 additions & 0 deletions contrib/run_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,13 @@ do_dup_deps() {
duplicate_dependencies=$(
# Only show the actual duplicated deps, not their reverse tree, then
# whitelist the 'syn' crate which is duplicated but it's not our fault.
#
# Temporarily allow 2 versions of `hashes` and `hex` while we upgrade.
cargo tree --target=all --all-features --duplicates \
| grep '^[0-9A-Za-z]' \
| grep -v 'syn' \
| grep -v 'bitcoin_hashes' \
| grep -v 'hex-conservative' \
| wc -l
)
if [ "$duplicate_dependencies" -ne 0 ]; then
Expand Down
21 changes: 21 additions & 0 deletions hashes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 0.14.0 - 2024-03-21

* Bump MSRV to Rust version 1.56.1 [#2188](https://github.com/rust-bitcoin/rust-bitcoin/pull/2188)

## API improvemnts

* Add support for SHA384 [#2538](https://github.com/rust-bitcoin/rust-bitcoin/pull/2538)
* Make from_hex inherent for byte-like types [#2491](https://github.com/rust-bitcoin/rust-bitcoin/pull/2491)
* Add `Hash::from_bytes_iter` to construct hashes from iterators [#2272](https://github.com/rust-bitcoin/rust-bitcoin/pull/2272)
* Make some constructors `const` [#2446](https://github.com/rust-bitcoin/rust-bitcoin/pull/2446)

## Features/dependencies changes

* Removed `core2` dependency in favour of the new `bitcoin-io` crate [#2066](https://github.com/rust-bitcoin/rust-bitcoin/pull/2066)
* Remove "serde-std" [#2384](https://github.com/rust-bitcoin/rust-bitcoin/pull/2384)

## Error handling improvements

* Improve leaf errors [#2530](https://github.com/rust-bitcoin/rust-bitcoin/pull/2530)
* Implement `From<Infallible>` for errors [#2516](https://github.com/rust-bitcoin/rust-bitcoin/pull/2516)

# 0.13.0 - 2023-06-29

The main improvement in this version is removal of the `hex` module in favour of the new
Expand Down
2 changes: 1 addition & 1 deletion hashes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitcoin_hashes"
version = "0.13.0"
version = "0.14.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin"
Expand Down

0 comments on commit 0ca5a43

Please sign in to comment.