BOOM! A long time in the making but here goes, our first 1.0 crate release.
This changelog is a rolling description of everything that will eventually end up in v1.0.
- Introduce limit to
Amount - New
NumOpResulttype - Heavily modify
fee_ratemodule: - Fix and improve
locktimemodules - Make block-related types have private inner fields #4508
Timestamp/BlockTime- Add µBTC as a recognized str form of a
MicroBitcoinDenomination#3943 - Remove
InputStringfrom the public API #3905 - Hide the remaining public macros #3867
- Change method return type for
to_unsigned()#3769 - Change paramater type used for whole bitcoin #3744
- Add
Weight::to_kwu_ceil#3740 - Replace
StringwithInputString#3559
- Close the hex parse errors #3673
- 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
This release we started adding implementations of
arbitrary::Arbitrary.
Types implemented: Amount, SignedAmount, FeeRate, and Weight.
In the following PRs:
- Remove enable of
allocfeature in theinternalsdependency.
Note, the bug fixed by this release was introduced in
#2655 and
was incorrect because we have an alloc feature that enables
internals/alloc.
v0.1.1 will be yanked for this reason.
- Enable "alloc" feature for
internalsdependency - enables caching of parsed input strings in a couple ofamounterror types.
Initial release of the bitcoin-units crate. These unit types are
integer wrapper types used by the rust-bitcoin ecosystem. Note
please that this release relies heavily on the "alloc" feature.
The main types are:
Amountlocktime::absolute::{Height, Time}locktime::relative::{Height, Time}FeeRateWeight
Empty crate to reserve the name on crates.io