bitcoin-units
Basic Bitcoin numeric units such as amount
0.5.0
6.6M downloads/mo
#3919 most downloaded on crates.io
rust-bitcoin/rust-bitcoin
What this package is like to depend on
Last release 2 months ago
24 Jun 2026
Release timing varies
gaps range from 2 weeks to 10 months
Most releases are documented
notes for 9 of 11 stable releases
1 version withdrawn
withdrawn after publishing
3 years old
17 releases · first in 2023
11 releases in the last 12 months
see the full history below
Release timeline
17 releases · May 2023 to Jun 2026Releases
latest 17-
1.0.0-rc.427 Dec 2025 pre-releaseNothing published for this version
-
1.0.0-rc.309 Dec 2025 pre-releaseNothing published for this version
-
1.0.0-rc.218 Oct 2025 pre-releaseNothing published for this version
-
1.0.0-rc.117 Oct 2025 pre-releaseNothing published for this version
-
1.0.0-rc.025 Jun 2025 pre-releaseNothing published for this version
-
0.5.019 Jun 2026Release notes
Open source →- Replace encoding functions with optional-alloc
Base58CkString6505 - Upgrade to stable
bitcoin_hashesdependency
Release notes
Open source → - Replace encoding functions with optional-alloc
-
0.4.031 May 2026Release notes
Open source →- Add format traits for
TargetandWork#5626 - Move remaining
powtypes to units #5608 - Extend
parse_intand add hex string parsing to integer wrapper types #5782 - Remove
From<SubError>for error types #5855 - Re-export
serdeandarbitrarywhen they appear in public API #5862 - Unify
FromStrimpls for integer wrapper types #5783 - Add
serdesupport forVec<T>#5786 - Add next target calculation #5544
- Move and improve
CompactTarget#5511 - Add
fmttraits for simple wrapper types #5510 - Upgrade to
consensus-encoding 1.0.0
Please note the breaking change in how we define encoders had the effect of breaking every type in the lib so there is no semver tricking done in this release - sorry.
- Add format traits for
-
0.3.023 Feb 2026Release notes
Open source →It was found that the
1.0.0-rc.xreleases were troublesome because of howcargoresolves version numbers that include a suffix. For this reason we elected to go back to pre-1.0 version numbers.- Add next target calculation #5544
-
0.2.001 Oct 2024Release notes
Open source →- Bump MSRV to 1.63.0 #3100
- Remove re-export of
ParseIntError#3069 - Improve docs #2957
- Fix
Amountdecimals handling #2951 - Remove
Denomination::MilliSatoshi#2870 - Document that the implementation of
DisplayforAmountis unstable #3323 - Add a condition for parsing zero from string when not denominated #3346
- Enforce displaying
Amountwith trailing zeros #2604 - Fix
Amountdecimals handling #2951 - Error instead of panic when
Time::from_second_ceilinput is too large #3052 - Remove re-export of
ParseIntError#3069 - Add
FeeRateaddition and subtraction traits #3381 - Add
BlockHeightandBlockIntervaltypes #2615
Additional test infrastructure:
ArbitraryThis release we started adding implementations of
arbitrary::Arbitrary.Types implemented:
Amount,SignedAmount,FeeRate, andWeight.In the following PRs:
-
0.1.10124 Jun 2026 -
0.1.10027 May 2026 withdrawnRelease notes
Open source →This release was yanked because the MSRV bump to 1.74.0 was too aggressive for some users. See version 0.1.101 for a smaller upgrade to 1.60.0.
- Bump MSRV to Rust 1.74.0 #6126
Note the version number jump. We jumped to
v0.1.100when doing the MSRV bump so as to leave room for a bunch of secuity releases up to this number if needed -
0.1.426 May 2026Nothing published for this version
-
0.1.323 Apr 2026Nothing published for this version
-
0.1.201 Jul 2024Release notes
Open source →- Remove enable of
allocfeature in theinternalsdependency.
Note, the bug fixed by this release was introduced in #2655 and was incorrect because we have an
allocfeature that enablesinternals/alloc.v0.1.1will be yanked for this reason. - Remove enable of
-
0.1.104 Apr 2024Release notes
Open source →- Enable "alloc" feature for
internalsdependency - enables caching of parsed input strings in a couple ofamounterror types.
- Enable "alloc" feature for
-
0.1.003 Apr 2024Release notes
Open source →Initial release of the
base58ckcrate. This crate was cut out ofrust-bitcoinand cleaned up for release as a separate crate.Release notes
Open source →Initial release of the
bitcoin-unitscrate. These unit types are integer wrapper types used by therust-bitcoinecosystem. Note please that this release relies heavily on the "alloc" feature.The main types are:
Amountlocktime::absolute::{Height, Time}locktime::relative::{Height, Time}FeeRateWeight
-
0.0.027 May 2023