NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4781 most downloaded on crates.io
A crate for expressing, formatting, and interacting with file sizes
Latest stable
0.6.0
Last release 1 months ago
17 Oct 2026
Release timing varies
gaps range from 4 months to 3.5 years
Most releases are documented
notes for 7 of 11 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
13 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
This release is technically non-breaking and probably could have been released as 0.5.1 but since it introduces new convenience methods and rejects so
This release is technically non-breaking and probably could have been released as 0.5.1 but since it introduces new convenience methods and rejects some (invalid) inputs that were previously accepted by Size::from_str(), I'm releasing it as 0.6.0 to be safe.
std::iter::Sum by @amitayh in #15Size::ubytes() to get unsigned size as suggested by @kevinchannon in #16Size::from_str() when it comes to out-of-range or nonsensical values (66f6e87)Size::new() and Size::const_new() helpers as aliases for from_bytes() and from_const() to make the crate friendlier to use for newcomers (fe453c3)String::from_str(), as reported by @jessekrubinFull Changelog: 0.5.0...0.6.0
On crates.io: https://crates.io/crates/size
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release is technically non-breaking and probably could have been released as 0.5.1 but since it introduces new convenience methods and rejects some (invalid) inputs that were previously accepted by Size::from_str(), I'm releasing it as 0.6.0 to be safe.
std::iter::Sum by @amitayh in https://github.com/neosmart/prettysize-rs/pull/15Size::ubytes() to get unsigned size as suggested by @kevinchannon in #16Size::from_str() when it comes to out-of-range or nonsensical values (66f6e8734c62525dfe1f1e726861dcf829ea601b)Size::new() and Size::const_new() helpers as aliases for from_bytes() and from_const() to make the crate friendlier to use for newcomers (fe453c37e1177359286bad035f744101a5f429b6)String::from_str(), as reported by @jessekrubinFull Changelog: https://github.com/neosmart/prettysize-rs/compare/0.5.0...0.6.0
On crates.io: https://crates.io/crates/size
Support deserializing from string types with Size::from_str() by @mqudsi in #11
Size::from_str() by @mqudsi in #11Full Changelog: 0.4.1...0.5.0
This is the same release as 0.5.0-preview2 but with some clippy lints addressed.
Size::from_str() by @mqudsi in https://github.com/neosmart/prettysize-rs/pull/11Full Changelog: https://github.com/neosmart/prettysize-rs/compare/0.4.1...0.5.0
This is the same release as 0.5.0-preview2 but with some clippy lints addressed.
Nothing published for this version
Bump to version 0.5.0-preview1
Bump to version 0.5.0-preview1
This update includes some hidden improvements as well as a few public-facing API changes.
This update includes some hidden improvements as well as a few public-facing API changes.
New features:
Size now implements AddAssign, SubAssign, MulAssign, and DivAssign.SizeFormatter::new() is now a const function.Improvements:
FormattableSize and SizeFormatter APIs have been coalesced into theSpecial thanks to first-time contributors @angusholder and @vic1707.
Nothing published for this version
Nothing published for this version
Add missing word from README.md
Add missing word from README.md
Nothing published for this version
This is a major (and slightly breaking) update to the PrettySize size crate, bringing significant new features, improvements to the API, and a complet
This is a major (and slightly breaking) update to the PrettySize size crate,
bringing significant new features, improvements to the API, and a complete
overhaul of the documentation.
The major changes from v0.1.x are outlined below:
Size<T> sizes, thatSize instances and forSize instances by scalar values,Size values,Size now implements PartialEq so Size values can be compared directlysize1.bytes() and size2.bytes()),Sizelet foo = Size::KiB(2); instead of let foo = Size::Kibibytes(2) (the resulting type is still the same for both),size::consts toSize<T> approach,Size instances can be compared for equality both directly and viaSize instances can now be compared for order (via PartialOrd),size crate can now be used in no_std mode by compiling with defaultThe definition for TERABYTE was incorrect thanks to a fat-fingered copy-and-paste, leading to future base-10 definitions being off by a factor of 10^3
The definition for TERABYTE was incorrect thanks to a fat-fingered
copy-and-paste, leading to future base-10 definitions being off by a
factor of 10^3. Thanks to @teschty for catching this.
Switch to u64 for all constants
Switch to u64 for all constants
Nothing published for this version
One column per quarter.