Skip to content

prettysize-rs 0.6.0

Latest

Choose a tag to compare

@mqudsi mqudsi released this 17 Oct 01:36

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.

What's Changed

  • Implement std::iter::Sum by @amitayh in #15
  • Allow using fmt::Display without std by @nobbele in #17
  • Implement Size::ubytes() to get unsigned size as suggested by @kevinchannon in #16
  • Increase strictness of Size::from_str() when it comes to out-of-range or nonsensical values (66f6e87)
  • Add 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)
  • Fix a panic when parsing invalid size strings that contain non-ascii sequences with String::from_str(), as reported by @jessekrubin

New Contributors

Full Changelog: 0.5.0...0.6.0

On crates.io: https://crates.io/crates/size