Skip to content

Commit 8d3b69d

Browse files
committed
Merge rust-bitcoin#4204: units: Bump version to 1.0.0-rc.0
806b34a units: Bump version to 1.0.0-rc.0 (Tobin C. Harding) 1f9c48b 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 806b34a; successfully ran local tests Tree-SHA512: 4d87865990fc66d0150156cf9aaae53b80602b826e68bc7e0210bea7dc488b72beb90b64034a4debb455c3d902efe574ec15ed7a8e638bc6f670cdd16b7a4e20
2 parents 8dc4b83 + 806b34a commit 8d3b69d

File tree

4 files changed

+48
-10
lines changed

4 files changed

+48
-10
lines changed

Cargo-minimal.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ dependencies = [
137137

138138
[[package]]
139139
name = "bitcoin-units"
140-
version = "0.2.0"
140+
version = "1.0.0-rc.0"
141141
dependencies = [
142142
"arbitrary",
143143
"bincode",

Cargo-recent.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ dependencies = [
136136

137137
[[package]]
138138
name = "bitcoin-units"
139-
version = "0.2.0"
139+
version = "1.0.0-rc.0"
140140
dependencies = [
141141
"arbitrary",
142142
"bincode",

units/CHANGELOG.md

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,46 @@
1-
# Unreleased
2-
3-
- TODO: Make a comment about `Amount::MAX_MONEY` including breaking serde
4-
5-
- Use MAX_MONEY in serde regression test [#3950](https://github.com/rust-bitcoin/rust-bitcoin/pull/3950)
1+
# 1.0.0 - 2025-02-24
2+
3+
BOOM! A long time in the making but here goes, our first 1.0 crate release.
4+
5+
This changelog is a rolling description of everything that will eventually end up in `v1.0`.
6+
7+
* Introduce limit to `Amount`
8+
* Prepare to enforce `MAX_MONEY` invariant [#4164](https://github.com/rust-bitcoin/rust-bitcoin/pull/4164)
9+
* Enforce `MAX_MONEY` invariant in amount types [#4157](https://github.com/rust-bitcoin/rust-bitcoin/pull/4157)
10+
* New `NumOpResult` type
11+
* Introduce monadic `NumOpResult` type [#4007](https://github.com/rust-bitcoin/rust-bitcoin/pull/4007)
12+
* Add impls for `NumOpResult` div and mul [#4337](https://github.com/rust-bitcoin/rust-bitcoin/pull/4337)
13+
* Use `NumOpResult` instead of `Option` [#4428](https://github.com/rust-bitcoin/rust-bitcoin/pull/4428)
14+
* Return `NumOpResult` when implementing `Div` [#4312](https://github.com/rust-bitcoin/rust-bitcoin/pull/4312)
15+
* Heavily modify `fee_rate` module:
16+
* Make `FeeRate` use MvB internally [#4534](https://github.com/rust-bitcoin/rust-bitcoin/pull/4534)
17+
* Add `FeeRate` addition and subtraction traits [#3381](https://github.com/rust-bitcoin/rust-bitcoin/pull/3381)
18+
* Remove `Display`/`FromStr` for `FeeRate` [#4512](https://github.com/rust-bitcoin/rust-bitcoin/pull/4512)
19+
* Implement `serde` modules for `FeeRate` [#3666](https://github.com/rust-bitcoin/rust-bitcoin/pull/3666)
20+
* Fix and improve `locktime` modules
21+
* Modify locktime `serde` implementations [#4511](https://github.com/rust-bitcoin/rust-bitcoin/pull/4511)
22+
* Improve lock times - fix off-by-one bug [#4468](https://github.com/rust-bitcoin/rust-bitcoin/pull/4468)
23+
* Do lock time renames [#4462](https://github.com/rust-bitcoin/rust-bitcoin/pull/4462)
24+
* Make block-related types have private inner fields [#4508](https://github.com/rust-bitcoin/rust-bitcoin/pull/4508)
25+
* `Timestamp`/`BlockTime`
26+
* Add `Timestamp` newtype [#4092](https://github.com/rust-bitcoin/rust-bitcoin/pull/4092)
27+
* Rename then new `Timestamp` type to `BlockTime` [#4219](https://github.com/rust-bitcoin/rust-bitcoin/pull/4219)
28+
* Add µBTC as a recognized str form of a `MicroBitcoin` `Denomination` [#3943](https://github.com/rust-bitcoin/rust-bitcoin/pull/3943)
29+
* Remove `InputString` from the public API [#3905](https://github.com/rust-bitcoin/rust-bitcoin/pull/3905)
30+
* Hide the remaining public macros [#3867](https://github.com/rust-bitcoin/rust-bitcoin/pull/3867)
31+
* Change method return type for `to_unsigned()` [#3769](https://github.com/rust-bitcoin/rust-bitcoin/pull/3769)
32+
* Change paramater type used for whole bitcoin [#3744](https://github.com/rust-bitcoin/rust-bitcoin/pull/3744)
33+
* Add `Weight::to_kwu_ceil` [#3740](https://github.com/rust-bitcoin/rust-bitcoin/pull/3740)
34+
* Replace `String` with `InputString` [#3559](https://github.com/rust-bitcoin/rust-bitcoin/pull/3559)
35+
36+
## Changes relate to error types
37+
38+
* Close the hex parse errors [#3673](https://github.com/rust-bitcoin/rust-bitcoin/pull/3673)
39+
40+
## Improved support for `Arbitrary`
41+
42+
* Implement `Arbitrary` for `units` types [#3777](https://github.com/rust-bitcoin/rust-bitcoin/pull/3777)
43+
* Add `Arbitrary` to `Weight` [#3257](https://github.com/rust-bitcoin/rust-bitcoin/pull/3257)
644

745
# 0.2.0 - 2024-09-18
846

units/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitcoin-units"
3-
version = "0.2.0"
3+
version = "1.0.0-rc.0"
44
authors = ["Andrew Poelstra <[email protected]>"]
55
license = "CC0-1.0"
66
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
@@ -18,13 +18,13 @@ std = ["alloc", "internals/std"]
1818
alloc = ["internals/alloc","serde?/alloc"]
1919

2020
[dependencies]
21-
internals = { package = "bitcoin-internals", path = "../internals" }
21+
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0" }
2222

2323
serde = { version = "1.0.103", default-features = false, optional = true }
2424
arbitrary = { version = "1.4", optional = true }
2525

2626
[dev-dependencies]
27-
internals = { package = "bitcoin-internals", path = "../internals", features = ["test-serde"] }
27+
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.0", features = ["test-serde"] }
2828
bincode = "1.3.1"
2929
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
3030
serde_test = "1.0"

0 commit comments

Comments
 (0)