From 07a529a13210c84dfb7afa253b71c6fb5d0dcb02 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 1 Aug 2024 07:56:01 -0500 Subject: [PATCH] Bump version of bitcoin-units to 0.2.0 In preparation for releasing `units v0.2.0` bump the version number, add a changelog entry, update the lock files, and depend on the new version in all crates that depend on `units`. --- Cargo-minimal.lock | 2 +- Cargo-recent.lock | 2 +- bitcoin/Cargo.toml | 2 +- primitives/Cargo.toml | 2 +- units/CHANGELOG.md | 28 ++++++++++++++++++++++++++++ units/Cargo.toml | 2 +- 6 files changed, 33 insertions(+), 5 deletions(-) diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index a5c5bdd58..8104602f0 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -122,7 +122,7 @@ dependencies = [ [[package]] name = "bitcoin-units" -version = "0.1.2" +version = "0.2.0" dependencies = [ "arbitrary", "bitcoin-internals", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index 821d78b31..79d4eddd7 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "bitcoin-units" -version = "0.1.2" +version = "0.2.0" dependencies = [ "arbitrary", "bitcoin-internals", diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 71e74b0b0..b9e5661ec 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -33,7 +33,7 @@ internals = { package = "bitcoin-internals", version = "0.4.0", features = ["all io = { package = "bitcoin-io", version = "0.1.1", default-features = false, features = ["alloc"] } primitives = { package = "bitcoin-primitives", version = "0.100.0", default-features = false, features = ["alloc"] } secp256k1 = { version = "0.29.0", default-features = false, features = ["hashes", "alloc"] } -units = { package = "bitcoin-units", version = "0.1.0", default-features = false, features = ["alloc"] } +units = { package = "bitcoin-units", version = "0.2.0", default-features = false, features = ["alloc"] } arbitrary = { version = "1", optional = true } base64 = { version = "0.22.0", optional = true } diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index 6349b9978..4a2ff28b5 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -25,7 +25,7 @@ arbitrary = ["dep:arbitrary", "units/arbitrary"] hashes = { package = "bitcoin_hashes", version = "0.14.0", default-features = false, features = ["bitcoin-io"] } internals = { package = "bitcoin-internals", version = "0.4.0" } io = { package = "bitcoin-io", version = "0.1.1", default-features = false } -units = { package = "bitcoin-units", version = "0.1.0", default-features = false } +units = { package = "bitcoin-units", version = "0.2.0", default-features = false } arbitrary = { version = "1", optional = true } ordered = { version = "0.2.0", optional = true } diff --git a/units/CHANGELOG.md b/units/CHANGELOG.md index 5fc64845c..fd6a4e6e8 100644 --- a/units/CHANGELOG.md +++ b/units/CHANGELOG.md @@ -1,3 +1,31 @@ +# 0.2.0 - 2024-09-18 + +* Bump MSRV to 1.63.0 [#3100](https://github.com/rust-bitcoin/rust-bitcoin/pull/3100) +* Remove re-export of `ParseIntError` [#3069](https://github.com/rust-bitcoin/rust-bitcoin/pull/3069) +* Improve docs [#2957](https://github.com/rust-bitcoin/rust-bitcoin/pull/2957) +* Fix `Amount` decimals handling [#2951](https://github.com/rust-bitcoin/rust-bitcoin/pull/2951) +* Remove `Denomination::MilliSatoshi` [#2870](https://github.com/rust-bitcoin/rust-bitcoin/pull/2870) +* Document that the implementation of `Display` for `Amount` is unstable [#3323](https://github.com/rust-bitcoin/rust-bitcoin/pull/3323) +* Add a condition for parsing zero from string when not denominated [#3346](https://github.com/rust-bitcoin/rust-bitcoin/pull/3346) +* Enforce displaying `Amount` with trailing zeros [#2604](https://github.com/rust-bitcoin/rust-bitcoin/pull/2604) +* Fix `Amount` decimals handling [#2951](https://github.com/rust-bitcoin/rust-bitcoin/pull/2951) +* Error instead of panic when `Time::from_second_ceil` input is too large [#3052](https://github.com/rust-bitcoin/rust-bitcoin/pull/3052) +* Remove re-export of `ParseIntError` [#3069](https://github.com/rust-bitcoin/rust-bitcoin/pull/3069) +* Add `FeeRate` addition and subtraction traits [#3381](https://github.com/rust-bitcoin/rust-bitcoin/pull/3381) + +## Additional test infrastructure:`Arbitrary` + +This release we started adding implementations of +[`arbitrary::Arbitrary`](https://docs.rs/arbitrary/latest/arbitrary/trait.Arbitrary.html). + +Types implemented: `Amount`, `SignedAmount`, `FeeRate`, and `Weight`. + +In the following PRs: + +* [#3305](https://github.com/rust-bitcoin/rust-bitcoin/pull/3015) +* [#3257](https://github.com/rust-bitcoin/rust-bitcoin/pull/3257) +* [#3247](https://github.com/rust-bitcoin/rust-bitcoin/pull/3274) + ## 0.1.2 - 2024-07-01 * Remove enable of `alloc` feature in the `internals` dependency. diff --git a/units/Cargo.toml b/units/Cargo.toml index 1b24ed4ff..61acb6613 100644 --- a/units/Cargo.toml +++ b/units/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitcoin-units" -version = "0.1.2" +version = "0.2.0" authors = ["Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/rust-bitcoin/"