diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index 228661483..0fe8e5743 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -116,7 +116,7 @@ dependencies = [ [[package]] name = "bitcoin-units" -version = "0.2.0" +version = "1.0.0-alpha.0" dependencies = [ "arbitrary", "bincode", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index 2b4ef7378..10485109e 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -115,7 +115,7 @@ dependencies = [ [[package]] name = "bitcoin-units" -version = "0.2.0" +version = "1.0.0-alpha.0" dependencies = [ "arbitrary", "bincode", diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index ab765c7e2..f8e16ac37 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -33,7 +33,7 @@ internals = { package = "bitcoin-internals", version = "0.4.0", features = ["all io = { package = "bitcoin-io", version = "0.2.0", default-features = false, features = ["alloc", "hashes"] } primitives = { package = "bitcoin-primitives", version = "0.101.0", default-features = false, features = ["alloc"] } secp256k1 = { version = "0.29.0", default-features = false, features = ["hashes", "alloc"] } -units = { package = "bitcoin-units", version = "0.2.0", default-features = false, features = ["alloc"] } +units = { package = "bitcoin-units", version = "1.0.0-alpha.0", default-features = false, features = ["alloc"] } arbitrary = { version = "1.4", optional = true } base64 = { version = "0.22.0", optional = true } diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index afb74fd00..bd465c38e 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -25,7 +25,7 @@ arbitrary = ["dep:arbitrary", "units/arbitrary"] hashes = { package = "bitcoin_hashes", version = "0.16.0", default-features = false, features = ["hex"] } hex = { package = "hex-conservative", version = "0.3.0", default-features = false } internals = { package = "bitcoin-internals", version = "0.4.0" } -units = { package = "bitcoin-units", version = "0.2.0", default-features = false } +units = { package = "bitcoin-units", version = "1.0.0-alpha.0", default-features = false } arbitrary = { version = "1.4", optional = true } serde = { version = "1.0.103", default-features = false, features = ["derive", "alloc"], optional = true } diff --git a/units/CHANGELOG.md b/units/CHANGELOG.md index c2f6a470f..43934d5a3 100644 --- a/units/CHANGELOG.md +++ b/units/CHANGELOG.md @@ -1,8 +1,31 @@ -# Unreleased - -- TODO: Make a comment about `Amount::MAX_MONEY` including breaking serde - -- Use MAX_MONEY in serde regression test [#3950](https://github.com/rust-bitcoin/rust-bitcoin/pull/3950) +# 1.0.0-alpha - 2025-02-24 + +Release everything except the `amount` types. + +BOOM! A long time in the making but here goes, our first alpha 1.0 crate release. + +* Add `FIFTY_BTC` const to the amount types [#3915](https://github.com/rust-bitcoin/rust-bitcoin/pull/3915) +* Remove `InputString` from the public API [#3905](https://github.com/rust-bitcoin/rust-bitcoin/pull/) +* Hide the remaining public macros [#3867]() +* Introduce an unchecked constructor for the `Amount` type [#3811]() +* Implement `Arbitrary` for `units` types [#3777]() +* Change method return type for `to_unsigned()` [#3769]() +* Change paramater type used for whole bitcoin [#3744]() +* Add `Weight::to_kwu_ceil` [#3740]() +* Change `SignedAmount` MAX and MIN to equal +/- MAX_MONEY [#3719]() +* Change `Amount::MAX` from `u64::MAX` to `Amount::MAX_MONEY` [#3693]() +* Support serde serializing `Amount` as string [#3679]() +* Close amounts error types [#3674]() +* Close the hex parse errors [#3673]() +* Remove `serde` from amounts [#3672]() +* Implement `serde` modules for `FeeRate` [#3666]() +* Remove `Amount::fmt_value_in` [#3621]() +* Split `checked_div_by_weight` into floor and ceiling version [#3587]() +* Replace `String` with `InputString` [#3559]() +* Add checked div by weight to amount [#3430]() +* Add `FeeRate` addition and subtraction traits [#3381]() +* Add `Arbitrary` to `SignedAmount` type [#3274]() +* Add `Arbitrary` to `Weight` [#3257]() # 0.2.0 - 2024-09-18 diff --git a/units/Cargo.toml b/units/Cargo.toml index f2a73f309..81e827700 100644 --- a/units/Cargo.toml +++ b/units/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitcoin-units" -version = "0.2.0" +version = "1.0.0-alpha.0" authors = ["Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/rust-bitcoin/" diff --git a/units/src/lib.rs b/units/src/lib.rs index 4d3be98ac..06ba8445d 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -29,6 +29,7 @@ pub mod _export { } } +#[doc(hidden)] pub mod amount; pub mod block; pub mod fee_rate; @@ -39,8 +40,9 @@ pub mod weight; #[doc(inline)] #[rustfmt::skip] pub use self::{ - amount::{Amount, SignedAmount}, block::{BlockHeight, BlockInterval}, fee_rate::FeeRate, weight::Weight }; +#[doc(hidden)] +pub use self::amount::{Amount, SignedAmount};