Skip to content

Commit 806b34a

Browse files
committed
units: Bump version to 1.0.0-rc.0
In preparation for doing the first 1.0 RC release set the version number, add a changelog entry, and update the lock files.
1 parent 1f9c48b commit 806b34a

File tree

4 files changed

+46
-8
lines changed

4 files changed

+46
-8
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: 1 addition & 1 deletion
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/"

0 commit comments

Comments
 (0)