v0.4.25
Time for another maintenance release. This release bumps the MSRV to 1.56; given MSRV bumps in chrono's dependencies (notably for syn 2), we felt that it no longer made sense to support any older versions. Feedback welcome in our issue tracker!
Additions
- Bump the MSRV to 1.56 (#1053)
- Apply comments from MSRV bump (#1026, thanks to @pitdicker)
- Remove num-integer dependency (#1037, thanks to @pitdicker)
- Add
NaiveDateTime::and_utc()
method (#952, thanks to @klnusbaum) - derive
Hash
for most pub types that also derivePartialEq
(#938, thanks to @bruceg) - Add
parse_and_remainder()
methods (#1011, thanks to @pitdicker) - Add
DateTime::fix_offset()
(#1030, thanks to @pitdicker) - Add
#[track_caller]
toLocalResult::unwrap
(#1046, thanks to @pitdicker) - Add
#[must_use]
to some methods (#1007, thanks to @aceArt-GmbH) - Implement
PartialOrd
forMonth
(#999, thanks to @Munksgaard) - Add
impl From<NaiveDateTime> for NaiveDate
(#1012, thanks to @pezcore) - Extract timezone info from tzdata file on Android (#978, thanks to @RumovZ)
Fixes
- Prevent string slicing inside char boundaries (#1024, thanks to @pitdicker)
- fix IsoWeek so that its flags are always correct (#991, thanks to @moshevds)
- Fix out-of-range panic in
NaiveWeek::last_day
(#1070, thanks to @pitdicker) - Use correct offset in conversion from
Local
toFixedOffset
(#1041, thanks to @pitdicker) - Fix military timezones in RFC 2822 parsing (#1013, thanks to @pitdicker)
- Guard against overflow in NaiveDate::with_*0 methods (#1023, thanks to @pitdicker)
- Fix panic in from_num_days_from_ce_opt (#1052, thanks to @pitdicker)
Refactoring
- Rely on std for getting local time offset (#1072, thanks to @pitdicker)
- Make functions in internals const (#1043, thanks to @pitdicker)
- Refactor windows module in
Local
(#992, thanks to @nekevss) - Simplify from_timestamp_millis, from_timestamp_micros (#1032, thanks to @pitdicker)
- Backport #983 and #1000 (#1063, thanks to @pitdicker)
Documentation
- Backport documentation improvements (#1066, thanks to @pitdicker)
- Add documentation for %Z quirk (#1051, thanks to @campbellcole)
- Add an example to Weekday (#1019, thanks to @pitdicker)
Internal improvements
- Gate test on
clock
feature (#1061, thanks to @pitdicker) - CI: Also run tests with
--no-default-features
(#1059, thanks to @pitdicker) - Prevent
bench_year_flags_from_year
from being optimized out (#1034, thanks to @pitdicker) - Fix test_leap_second during DST transition (#1064, thanks to @pitdicker)
- Fix warnings when running tests on Windows (#1038, thanks to @pitdicker)
- Fix tests on AIX (#1028, thanks to @ecnelises)
- Fix doctest warnings, remove mention of deprecated methods from main doc (#1081, thanks to @pitdicker)
- Reformat
test_datetime_parse_from_str
(#1078, thanks to @pitdicker) - GitHub yml shell
set -eux
, use bash (#1103, thanks to @jtmoon79) - test: explicitly set
LANG
toc
in gnudate
(#1089, thanks to @scarf005) - Switch test to
TryFrom
(#1086, thanks to @pitdicker) - Add test for issue 551 (#1020, thanks to @pitdicker)
- RFC 2822 single-letter obsolete tests (#1014, thanks to @jtmoon79)
- [CI] Lint Windows target and documentation links (#1062, thanks to @pitdicker)
- add test_issue_866 (#1077, thanks to @jtmoon79)
- Remove AUTHORS metadata (#1074)