Skip to content

Commit a89b52d

Browse files
committed
Merge rust-bitcoin#5363: Release tracking PR: units v1.0.0-rc.3
41a9734 Release tracking PR: `units v1.0.0-rc.3` (Tobin C. Harding) 3b70bda units: Pin RC dependency (Tobin C. Harding) d19605c units: Set TBD in deprecate attribute (Tobin C. Harding) e8f1100 units: Stop using deprecated types (Tobin C. Harding) 4abc454 units: Remove deprecated calls in absolute locktime code (Tobin C. Harding) Pull request description: Do another RC round. Added changelog entry for the `Amount` string value separator PR. Bumped version and updated crates that depend on `units` to use it. Updated lock files. Ran: `cargo publish --dry-run -p bitcoin-units` ACKs for top commit: apoelstra: ACK 41a9734; successfully ran local tests Tree-SHA512: 363f52bf5cb79e22c64768a0b7520be90bd016c6cc63df8782de1ad90e5aaf960ee6593b033a6c0650d7b36c4e81902da110a1f6b68f05ea0b5cfd9fffd3034f
2 parents d8bf0a8 + 41a9734 commit a89b52d

File tree

17 files changed

+40
-40
lines changed

17 files changed

+40
-40
lines changed

Cargo-minimal.lock

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

153153
[[package]]
154154
name = "bitcoin-units"
155-
version = "1.0.0-rc.2"
155+
version = "1.0.0-rc.3"
156156
dependencies = [
157157
"arbitrary",
158158
"bincode",

Cargo-recent.lock

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

152152
[[package]]
153153
name = "bitcoin-units"
154-
version = "1.0.0-rc.2"
154+
version = "1.0.0-rc.3"
155155
dependencies = [
156156
"arbitrary",
157157
"bincode",

bitcoin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internals = { package = "bitcoin-internals", path = "../internals", version = "0
3333
io = { package = "bitcoin-io", path = "../io", version = "0.3.0", default-features = false, features = ["alloc", "hashes"] }
3434
primitives = { package = "bitcoin-primitives", path = "../primitives", version = "1.0.0-rc.0", default-features = false, features = ["alloc", "hex"] }
3535
secp256k1 = { version = "0.32.0-beta.2", default-features = false, features = ["alloc"] }
36-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.2", default-features = false, features = ["alloc"] }
36+
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false, features = ["alloc"] }
3737

3838
arbitrary = { version = "1.4.1", optional = true }
3939
base64 = { version = "0.22.0", optional = true, default-features = false, features = ["alloc"] }

p2p/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hashes = { package = "bitcoin_hashes", version = "0.18.0", path = "../hashes", d
2424
hex = { package = "hex-conservative", version = "0.3.0", default-features = false }
2525
internals = { package = "bitcoin-internals", path = "../internals", default-features = false }
2626
io = { package = "bitcoin-io", path = "../io", default-features = false }
27-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.2", default-features = false }
27+
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false }
2828

2929
arbitrary = { version = "1.4.1", optional = true }
3030

primitives/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ hex = ["dep:hex-stable", "dep:hex-unstable", "hashes/hex", "internals/hex"]
2424
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0-rc.1", default-features = false }
2525
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "0.18.0", default-features = false }
2626
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.1" }
27-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.2", default-features = false, features = [ "encoding" ] }
27+
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false, features = [ "encoding" ] }
2828
arrayvec = { version = "0.7.2", default-features = false }
2929

3030
arbitrary = { version = "1.4.1", optional = true }

units/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This changelog is a rolling description of everything that will eventually end u
77
* Introduce limit to `Amount`
88
* Prepare to enforce `MAX_MONEY` invariant [#4164](https://github.com/rust-bitcoin/rust-bitcoin/pull/4164)
99
* Enforce `MAX_MONEY` invariant in amount types [#4157](https://github.com/rust-bitcoin/rust-bitcoin/pull/4157)
10+
* Allow underscores as separators in `Amount` values [#5309](https://github.com/rust-bitcoin/rust-bitcoin/pull/5309)
1011
* New `NumOpResult` type
1112
* Introduce monadic `NumOpResult` type [#4007](https://github.com/rust-bitcoin/rust-bitcoin/pull/4007)
1213
* Add impls for `NumOpResult` div and mul [#4337](https://github.com/rust-bitcoin/rust-bitcoin/pull/4337)

units/Cargo.toml

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

2020
[dependencies]
21-
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0-rc.2", default-features = false, optional = true }
21+
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "=1.0.0-rc.2", default-features = false, optional = true }
2222
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.1" }
2323

2424
serde = { version = "1.0.195", default-features = false, features = ["derive"], optional = true }

units/src/amount/signed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ impl SignedAmount {
360360
///
361361
/// Returns [`None`] if overflow occurred. (`self == i64::MIN`)
362362
#[must_use]
363-
#[deprecated(since = "TBD", note = "Never returns none, use `abs()` instead")]
363+
#[deprecated(since = "1.0.0-rc.0", note = "Never returns none, use `abs()` instead")]
364364
#[allow(clippy::unnecessary_wraps)] // To match stdlib function definition.
365365
pub const fn checked_abs(self) -> Option<Self> { Some(self.abs()) }
366366

units/src/fee_rate/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl FeeRate {
190190
///
191191
/// This is equivalent to `Self::mul_by_weight(weight).ok()`.
192192
#[must_use]
193-
#[deprecated(since = "TBD", note = "use `to_fee()` instead")]
193+
#[deprecated(since = "1.0.0-rc.0", note = "use `to_fee()` instead")]
194194
pub fn fee_wu(self, weight: Weight) -> Option<Amount> { self.mul_by_weight(weight).ok() }
195195

196196
/// Calculates the fee by multiplying this fee rate by weight, in virtual bytes, returning [`None`]
@@ -199,7 +199,7 @@ impl FeeRate {
199199
/// This is equivalent to converting `vb` to [`Weight`] using [`Weight::from_vb`] and then calling
200200
/// [`Self::to_fee`].
201201
#[must_use]
202-
#[deprecated(since = "TBD", note = "use Weight::from_vb and then `to_fee()` instead")]
202+
#[deprecated(since = "1.0.0-rc.0", note = "use Weight::from_vb and then `to_fee()` instead")]
203203
pub fn fee_vb(self, vb: u64) -> Option<Amount> { Weight::from_vb(vb).map(|w| self.to_fee(w)) }
204204

205205
/// Checked weight multiplication.

units/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ pub use self::{
6666
weight::Weight
6767
};
6868

69-
#[deprecated(since = "TBD", note = "use `BlockHeightInterval` instead")]
69+
#[deprecated(since = "1.0.0-rc.0", note = "use `BlockHeightInterval` instead")]
7070
#[doc(hidden)]
7171
pub type BlockInterval = BlockHeightInterval;

0 commit comments

Comments
 (0)