Merge rust-bitcoin/rust-bitcoin#4204: units: Bump version to `1.0.0-rc.0`

806b34aefc units: Bump version to 1.0.0-rc.0 (Tobin C. Harding)
1f9c48b5d3 units: Set explicit internals dependency version to v0.4.0 (Tobin C. Harding)

Pull request description:

  In preparation for doing the first 1.0 RC release set the version number, add a changelog entry, and update the lock files.
  
  Lets go!


ACKs for top commit:
  apoelstra:
    ACK 806b34aefc554c23cec2d1293113a589718c8cdf; successfully ran local tests


Tree-SHA512: 4d87865990fc66d0150156cf9aaae53b80602b826e68bc7e0210bea7dc488b72beb90b64034a4debb455c3d902efe574ec15ed7a8e638bc6f670cdd16b7a4e20
This commit is contained in:
Andrew Poelstra 2025-06-25 03:08:42 +00:00
commit 8d3b69dc52
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
4 changed files with 46 additions and 8 deletions

View File

@ -137,7 +137,7 @@ dependencies = [
[[package]] [[package]]
name = "bitcoin-units" name = "bitcoin-units"
version = "0.2.0" version = "1.0.0-rc.0"
dependencies = [ dependencies = [
"arbitrary", "arbitrary",
"bincode", "bincode",

View File

@ -136,7 +136,7 @@ dependencies = [
[[package]] [[package]]
name = "bitcoin-units" name = "bitcoin-units"
version = "0.2.0" version = "1.0.0-rc.0"
dependencies = [ dependencies = [
"arbitrary", "arbitrary",
"bincode", "bincode",

View File

@ -1,8 +1,46 @@
# Unreleased # 1.0.0 - 2025-02-24
- TODO: Make a comment about `Amount::MAX_MONEY` including breaking serde BOOM! A long time in the making but here goes, our first 1.0 crate release.
- Use MAX_MONEY in serde regression test [#3950](https://github.com/rust-bitcoin/rust-bitcoin/pull/3950) This changelog is a rolling description of everything that will eventually end up in `v1.0`.
* Introduce limit to `Amount`
* Prepare to enforce `MAX_MONEY` invariant [#4164](https://github.com/rust-bitcoin/rust-bitcoin/pull/4164)
* Enforce `MAX_MONEY` invariant in amount types [#4157](https://github.com/rust-bitcoin/rust-bitcoin/pull/4157)
* New `NumOpResult` type
* Introduce monadic `NumOpResult` type [#4007](https://github.com/rust-bitcoin/rust-bitcoin/pull/4007)
* Add impls for `NumOpResult` div and mul [#4337](https://github.com/rust-bitcoin/rust-bitcoin/pull/4337)
* Use `NumOpResult` instead of `Option` [#4428](https://github.com/rust-bitcoin/rust-bitcoin/pull/4428)
* Return `NumOpResult` when implementing `Div` [#4312](https://github.com/rust-bitcoin/rust-bitcoin/pull/4312)
* Heavily modify `fee_rate` module:
* Make `FeeRate` use MvB internally [#4534](https://github.com/rust-bitcoin/rust-bitcoin/pull/4534)
* Add `FeeRate` addition and subtraction traits [#3381](https://github.com/rust-bitcoin/rust-bitcoin/pull/3381)
* Remove `Display`/`FromStr` for `FeeRate` [#4512](https://github.com/rust-bitcoin/rust-bitcoin/pull/4512)
* Implement `serde` modules for `FeeRate` [#3666](https://github.com/rust-bitcoin/rust-bitcoin/pull/3666)
* Fix and improve `locktime` modules
* Modify locktime `serde` implementations [#4511](https://github.com/rust-bitcoin/rust-bitcoin/pull/4511)
* Improve lock times - fix off-by-one bug [#4468](https://github.com/rust-bitcoin/rust-bitcoin/pull/4468)
* Do lock time renames [#4462](https://github.com/rust-bitcoin/rust-bitcoin/pull/4462)
* Make block-related types have private inner fields [#4508](https://github.com/rust-bitcoin/rust-bitcoin/pull/4508)
* `Timestamp`/`BlockTime`
* Add `Timestamp` newtype [#4092](https://github.com/rust-bitcoin/rust-bitcoin/pull/4092)
* Rename then new `Timestamp` type to `BlockTime` [#4219](https://github.com/rust-bitcoin/rust-bitcoin/pull/4219)
* Add µBTC as a recognized str form of a `MicroBitcoin` `Denomination` [#3943](https://github.com/rust-bitcoin/rust-bitcoin/pull/3943)
* Remove `InputString` from the public API [#3905](https://github.com/rust-bitcoin/rust-bitcoin/pull/3905)
* Hide the remaining public macros [#3867](https://github.com/rust-bitcoin/rust-bitcoin/pull/3867)
* Change method return type for `to_unsigned()` [#3769](https://github.com/rust-bitcoin/rust-bitcoin/pull/3769)
* Change paramater type used for whole bitcoin [#3744](https://github.com/rust-bitcoin/rust-bitcoin/pull/3744)
* Add `Weight::to_kwu_ceil` [#3740](https://github.com/rust-bitcoin/rust-bitcoin/pull/3740)
* Replace `String` with `InputString` [#3559](https://github.com/rust-bitcoin/rust-bitcoin/pull/3559)
## Changes relate to error types
* Close the hex parse errors [#3673](https://github.com/rust-bitcoin/rust-bitcoin/pull/3673)
## Improved support for `Arbitrary`
* Implement `Arbitrary` for `units` types [#3777](https://github.com/rust-bitcoin/rust-bitcoin/pull/3777)
* Add `Arbitrary` to `Weight` [#3257](https://github.com/rust-bitcoin/rust-bitcoin/pull/3257)
# 0.2.0 - 2024-09-18 # 0.2.0 - 2024-09-18

View File

@ -1,6 +1,6 @@
[package] [package]
name = "bitcoin-units" name = "bitcoin-units"
version = "0.2.0" version = "1.0.0-rc.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"] authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0" license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin/" repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
@ -18,13 +18,13 @@ std = ["alloc", "internals/std"]
alloc = ["internals/alloc","serde?/alloc"] alloc = ["internals/alloc","serde?/alloc"]
[dependencies] [dependencies]
internals = { package = "bitcoin-internals", path = "../internals" } internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0" }
serde = { version = "1.0.103", default-features = false, optional = true } serde = { version = "1.0.103", default-features = false, optional = true }
arbitrary = { version = "1.4", optional = true } arbitrary = { version = "1.4", optional = true }
[dev-dependencies] [dev-dependencies]
internals = { package = "bitcoin-internals", path = "../internals", features = ["test-serde"] } internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0", features = ["test-serde"] }
bincode = "1.3.1" bincode = "1.3.1"
serde = { version = "1.0.103", default-features = false, features = ["derive"] } serde = { version = "1.0.103", default-features = false, features = ["derive"] }
serde_test = "1.0" serde_test = "1.0"