# Changelog ## Unreleased ## 2.4.2 - Improve accuracy of parsing large non-decimal byte count strings. ## 2.4.1 - Fix rounding error near power-of-unit boundaries. ## 2.4.0 - Implement `Sum` for `ByteSize`. - Minimum supported Rust version (MSRV) is now 1.85. ## 2.3.1 - Fix unit truncation in error strings. ## 2.3.0 - Add `Unit` enum. - Add `UnitParseError` type. ## 2.2.0 - Add `ByteSize::as_*()` methods to return equivalent sizes in KB, GiB, etc. ## 2.1.0 - Support parsing and formatting exabytes (EB) & exbibytes (EiB). - Migrate `serde` dependency to `serde_core`. ## 2.0.1 - Add support for precision in `Display` implementations. ## v2.0.0 - Add support for `no_std` targets. - Use IEC (binary) format by default with `Display`. - Use "kB" for SI unit. - Add `Display` type for customizing printed format. - Add `ByteSize::display()` method. - Implement `Sub` for `ByteSize`. - Implement `Sub>` for `ByteSize`. - Implement `SubAssign` for `ByteSize`. - Implement `SubAssign>` for `ByteSize`. - Reject parsing non-unit characters after whitespace. - Remove `ByteSize::to_string_as()` method. - Remove top-level `to_string()` method. - Remove top-level `B` constant.