Sourced from chrono's releases.
v0.4.38
This release bring a ca. 20% improvement to the performance of the formatting code, and a convenient
days_sincemethod for theWeekdaytype.Chrono 0.4.38 also removes the long deprecated
rustc-serializefeature. Support forrustc-serializewill be soft-destabilized in the next Rust edition. Removing the feature will not break existing users of the feature; Cargo will just not update dependents that rely on it to newer versions of chrono.In chrono 0.4.36 we made an accidental breaking change by switching to
derive(Copy)forDateTimeinstead of a manual implementation. It is reverted in this release.Removals
- Remove
rustc-serializefeature (#1548, thanks@workingjubilee)Additions
- Add
Weekday::days_since(#1249, based on #216 by@clarfonthey)- Add
TimeDelta::checked_mulandTimeDelta::checked_div(#1565, thanks@Zomtir)Fixes
- Return error when rounding with a zero duration (#1474, thanks
@Dav1dde)- Manually implement
CopyforDateTimeif offset isCopy(#1573)Internal
- Inline
test_encodable_jsonandtest_decodable_jsonfunctions (#1550)- CI: Reduce combinations in
cargo hack check(#1553)- Refactor formatting code (#1335)
- Optimize number formatting (#1558)
- Only package files needed for building and testing (#1554)
Thanks to all contributors on behalf of the chrono team,
@djcand@pitdicker!
352a352
Prepare 0.4.3846d44d6
Manually implement Copy for DateTime if offset
is Copy760eb66
Update windows-bindgen requirement from 0.55 to 0.56391187f
Return error when rounding with zero durationffc75e5
Add TimeDelta::checked_mul and
TimeDelta::checked_divf8cecbe
Make Weekday::num_days_from public, rename to
days_since.0cfc405
Optimize number formatting74ba83b
Take pad by value78e79db
Match on tuples in format_fixedf3d76c7
Match on tuples in format_numeric