- Minimum supported Rust version (MSRV) is now 1.76.
- Fix unit truncation in error strings.
- Add
Unitenum. - Add
UnitParseErrortype.
- Add
ByteSize::as_*()methods to return equivalent sizes in KB, GiB, etc.
- Support parsing and formatting exabytes (EB) & exbibytes (EiB).
- Migrate
serdedependency toserde_core.
- Add support for precision in
Displayimplementations.
- Add support for
no_stdtargets. - Use IEC (binary) format by default with
Display. - Use "kB" for SI unit.
- Add
Displaytype for customizing printed format. - Add
ByteSize::display()method. - Implement
Sub<ByteSize>forByteSize. - Implement
Sub<impl Into<u64>>forByteSize. - Implement
SubAssign<ByteSize>forByteSize. - Implement
SubAssign<impl Into<u64>>forByteSize. - Reject parsing non-unit characters after whitespace.
- Remove
ByteSize::to_string_as()method. - Remove top-level
to_string()method. - Remove top-level
Bconstant.