diff --git a/units/CHANGELOG.md b/units/CHANGELOG.md new file mode 100644 index 00000000..e2c14218 --- /dev/null +++ b/units/CHANGELOG.md @@ -0,0 +1,17 @@ +# 0.1.0 - Initial Release - 2024-04-03 + +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: + +- `Amount` +- `locktime::absolute::{Height, Time}` +- `locktime::relative::{Height, Time}` +- `FeeRate` +- `Weight` + +# 0.0.0 - Placeholder release + +Empty crate to reserve the name on crates.io \ No newline at end of file diff --git a/units/src/lib.rs b/units/src/lib.rs index 0da62a64..b2c27879 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -46,9 +46,16 @@ pub mod parse; pub mod weight; #[doc(inline)] -pub use self::amount::{Amount, ParseAmountError, SignedAmount}; +pub use self::amount::{Amount, SignedAmount}; +pub use self::amount::ParseAmountError; #[cfg(feature = "alloc")] pub use self::parse::ParseIntError; +#[cfg(feature = "alloc")] +#[doc(inline)] +pub use self::{ + fee_rate::FeeRate, + weight::Weight, +}; #[rustfmt::skip] #[allow(unused_imports)]