What changed, and why it matters
This commit is a routine version bump for the bitcoin-units crate from 0.4.0 to 0.5.0. It updates dependency references and lock files, and records in the changelog that some deprecated and internal-only hex-parsing helper functions were removed. There is no security-relevant code change in the diff itself.
No security action needed. Treat as normal release housekeeping.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff only changes version strings (0.4.0 -> 0.5.0) in Cargo.toml files and Cargo lock files, plus a changelog entry. The actual removal of public functions happened in earlier commits referenced as PR #6290 and PR #6292. No source code logic is modified here.
Changed components
bitcoin-units crate versioningCargo.lock filesunits/CHANGELOG.mdInspect captured patch +18 / −14
diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock
index 30018323..d4ceae3a 100644
--- a/Cargo-minimal.lock
+++ b/Cargo-minimal.lock
@@ -89,7 +89,7 @@ dependencies = [
"bitcoin-network-kind",
"bitcoin-primitives",
"bitcoin-taproot-primitives",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"bitcoinconsensus",
"hex-conservative 1.1.0",
@@ -214,7 +214,7 @@ dependencies = [
"bitcoin-internals 0.5.0",
"bitcoin-network-kind",
"bitcoin-primitives",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"hex-conservative 1.1.0",
"serde",
@@ -228,7 +228,7 @@ dependencies = [
"bincode",
"bitcoin-consensus-encoding",
"bitcoin-internals 0.5.0",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"hex-conservative 1.1.0",
"serde",
@@ -263,7 +263,7 @@ dependencies = [
[[package]]
name = "bitcoin-units"
-version = "0.4.0"
+version = "0.5.0"
dependencies = [
"arbitrary",
"bincode",
diff --git a/Cargo-recent.lock b/Cargo-recent.lock
index 05326a72..3da5568e 100644
--- a/Cargo-recent.lock
+++ b/Cargo-recent.lock
@@ -88,7 +88,7 @@ dependencies = [
"bitcoin-network-kind",
"bitcoin-primitives",
"bitcoin-taproot-primitives",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"bitcoinconsensus",
"hex-conservative 1.1.0",
@@ -213,7 +213,7 @@ dependencies = [
"bitcoin-internals 0.5.0",
"bitcoin-network-kind",
"bitcoin-primitives",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"hex-conservative 1.1.0",
"serde",
@@ -227,7 +227,7 @@ dependencies = [
"bincode",
"bitcoin-consensus-encoding",
"bitcoin-internals 0.5.0",
- "bitcoin-units 0.4.0",
+ "bitcoin-units 0.5.0",
"bitcoin_hashes 1.0.0",
"hex-conservative 1.1.0",
"serde",
@@ -256,7 +256,7 @@ dependencies = [
[[package]]
name = "bitcoin-units"
-version = "0.4.0"
+version = "0.5.0"
dependencies = [
"arbitrary",
"bincode",
diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml
index 6ee873eb..9b44eb55 100644
--- a/bitcoin/Cargo.toml
+++ b/bitcoin/Cargo.toml
@@ -39,7 +39,7 @@ network = { package = "bitcoin-network-kind", path = "../network", version = "1.
primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.102.0", default-features = false, features = ["alloc", "hex"] }
secp256k1 = { version = "0.32.0-beta.2", default-features = false, features = ["alloc"] }
taproot-primitives = { package = "bitcoin-taproot-primitives", path = "../taproot-primitives", version = "0.1.0", default-features = false, features = ["alloc", "hex"] }
-units = { package = "bitcoin-units", path = "../units", version = "0.4.0", default-features = false, features = ["alloc"] }
+units = { package = "bitcoin-units", path = "../units", version = "0.5.0", default-features = false, features = ["alloc"] }
arbitrary = { version = "1.4.1", optional = true }
base64 = { version = "0.22.0", optional = true, default-features = false, features = ["alloc"] }
diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml
index 4500ee72..dc607fd1 100644
--- a/p2p/Cargo.toml
+++ b/p2p/Cargo.toml
@@ -26,7 +26,7 @@ network = { package = "bitcoin-network-kind", path = "../network", version = "1.
primitives = { package = "bitcoin-primitives", path = "../primitives", version = "0.102.0", features = ["hex", "alloc"], default-features = false }
hex = { package = "hex-conservative", version = "1.1.0", default-features = false, features = ["alloc"] }
internals = { package = "bitcoin-internals", path = "../internals", default-features = false }
-units = { package = "bitcoin-units", path = "../units", version = "0.4.0", default-features = false }
+units = { package = "bitcoin-units", path = "../units", version = "0.5.0", default-features = false }
arbitrary = { version = "1.4.1", optional = true }
serde = { version = "1.0.195", default-features = false, features = ["derive", "alloc"], optional = true }
diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml
index 0e6011d9..7a842dee 100644
--- a/primitives/Cargo.toml
+++ b/primitives/Cargo.toml
@@ -25,7 +25,7 @@ hex = ["dep:hex", "hashes/hex", "internals/hex"]
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0", default-features = false }
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "1.0.0", default-features = false }
internals = { package = "bitcoin-internals", path = "../internals", version = "0.5.0" }
-units = { package = "bitcoin-units", path = "../units", version = "0.4.0", default-features = false, features = [ "encoding" ] }
+units = { package = "bitcoin-units", path = "../units", version = "0.5.0", default-features = false, features = [ "encoding" ] }
arbitrary = { version = "1.4.1", optional = true }
hex = { package = "hex-conservative", version = "1.1.0", default-features = false, optional = true }
diff --git a/units/CHANGELOG.md b/units/CHANGELOG.md
index 9c0a4ba9..da1c78c5 100644
--- a/units/CHANGELOG.md
+++ b/units/CHANGELOG.md
@@ -2,7 +2,10 @@
## [Unreleased]
-* Remove all deprecated code.
+## [0.5.0] - 2026-06-09
+
+* Remove `_unchecked` hex parsing function [#6292](https://github.com/rust-bitcoin/rust-bitcoin/pull/6292)
+* Remove all deprecated code [#6290](https://github.com/rust-bitcoin/rust-bitcoin/pull/6290).
## [0.4.0] - 2026-05-27
@@ -142,7 +145,8 @@ The main types are:
Empty crate to reserve the name on crates.io
-[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-units-0.4.0...HEAD
+[Unreleased]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-units-0.5.0...HEAD
+[0.5.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-units-0.3.0...bitcoin-units-0.5.0
[0.4.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/bitcoin-units-0.3.0...bitcoin-units-0.4.0
[0.3.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/units-0.2.0...bitcoin-units-0.3.0
[0.2.0]: https://github.com/rust-bitcoin/rust-bitcoin/compare/units-0.1.2...units-0.2.0
diff --git a/units/Cargo.toml b/units/Cargo.toml
index 6298ffee..c8e2f09d 100644
--- a/units/Cargo.toml
+++ b/units/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bitcoin-units"
-version = "0.4.0"
+version = "0.5.0"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>", "Tobin C. Harding <me@tobin.cc>"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.