fix(deps): update rust crate chrono to 0.4.26 #106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.4.19
->0.4.26
Release Notes
chronotope/chrono (chrono)
v0.4.26
: 0.4.26Compare Source
The changes from #807 we merged for 0.4.25 unfortunately restricted parsing in a way that was incompatible with earlier 0.4.x releases. We reverted this in #1113. A small amount of other changes were merged since.
DurationRound
panics from issue #1010 (#1093, thanks to @pitdicker)Thanks on behalf of the chrono team (@djc and @esheppa) to all contributors!
v0.4.25
: 0.4.25Compare Source
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
NaiveDateTime::and_utc()
method (#952, thanks to @klnusbaum)Hash
for most pub types that also derivePartialEq
(#938, thanks to @bruceg)parse_and_remainder()
methods (#1011, thanks to @pitdicker)DateTime::fix_offset()
(#1030, thanks to @pitdicker)#[track_caller]
toLocalResult::unwrap
(#1046, thanks to @pitdicker)#[must_use]
to some methods (#1007, thanks to @aceArt-GmbH)PartialOrd
forMonth
(#999, thanks to @Munksgaard)impl From<NaiveDateTime> for NaiveDate
(#1012, thanks to @pezcore)Fixes
NaiveWeek::last_day
(#1070, thanks to @pitdicker)Local
toFixedOffset
(#1041, thanks to @pitdicker)Refactoring
Local
(#992, thanks to @nekevss)Documentation
Internal improvements
clock
feature (#1061, thanks to @pitdicker)--no-default-features
(#1059, thanks to @pitdicker)bench_year_flags_from_year
from being optimized out (#1034, thanks to @pitdicker)test_datetime_parse_from_str
(#1078, thanks to @pitdicker)set -eux
, use bash (#1103, thanks to @jtmoon79)LANG
toc
in gnudate
(#1089, thanks to @scarf005)TryFrom
(#1086, thanks to @pitdicker)On behalf of @djc and @esheppa, thanks to all contributors!
v0.4.24
: 0.4.24Compare Source
This is a small maintenance release with accumulated fixes and improvements.
Days::new()
to refer to days, not months (#874, thanks to @brotskydotcom)from_timestamp_opt()
(#879, thanks to @xmo-odoo)format_localized()
forNaiveDate
(#881, thanks to @mseele)Add
/Sub
Days
, add tests with DST timezone (#878)NaiveTime::MIN
public (#890)from_timestamp_millis()
implementation and add more tests (#885)from_timestamp_micros()
function (#906, thanks to @umanwizard)Hash
for most pub types that also derivePartialEq
(#938, thanks to @bruceg)from_utc()
example (#939, thanks to @greg-el)DateTime::checked_add_days()
(#942, thanks to @Ekleog)FixedOffset
docs (#953, thanks to @klnusbaum)const
(#984, thanks to @tormeh)Thanks to all contributors from the chrono team, @esheppa and @djc.
v0.4.23
: 0.4.23Compare Source
0.4.23 is the next 0.4 release of the popular chrono date and time library for Rust. After the 0.4.20-0.4.22 series that brought chrono back to life after a long hiatus, development has been fairly quiet, allowing us to start planning changes for the 0.5.0 release. As such, we've started deprecating some APIs that are likely to be removed in 0.5. If you have any feedback on these changes, please let us know in the issue tracker!
Deprecations
_opt()
alternative (#827)Date<Tz>
type (#851)Features
Days
type (#784)NaiveDateTime::from_timestamp_millis(_opt)
(#818, thanks to @Pscheidl -- backported in #823)Local
timezone (#853)arbitrary::Arbitrary
trait (#849, thanks to @greyblake and @asayers)Fixes
On behalf of @esheppa and @djc, thanks to all contributors!
v0.4.22
: 0.4.22Compare Source
Unfortunately the introduction of the iana-time-zone dependency in 0.4.21 caused some new regressions with lesser known platforms. This release fixes all of the issues we've encountered, improving the situation on some WebAssembly targets, SGX and on macOS/iOS. We've improved our CI setup to hopefully catch more of these issues before release in the future.
wasm32-unknown-unknown
target (#771)x86_64-fortanix-unknown-sgx
(#767, thanks to @trevor-crypto)iana-time-zone
version to 0.1.44 to avoid cyclic dependencies (#773, thanks to @Kijewski for the upstream PRs)v0.4.21
: 0.4.21Compare Source
0.4.21 is a bugfix release that mainly fixes one regression from 0.4.20:
TimeZone::now()
fell back to UTC in the case it could not find the current timezone, but the new implementation panicked in that case./etc/localtime
to keep track of the current timezone. Instead we now use the iana-time-zone crate as a dependency, since it already has quite a bit of logic for finding the current timezone on a host of platforms.Additionally, there is a documentation fix that reverts an incorrect guarantee:
%Y
can have a negative value, both in formatting and in parsing (#760, thanks to @alex)v0.4.20
: 0.4.20Compare Source
chrono is a date and time library for Rust and 0.4.20 is the first chrono release since Sep 2020. There has been a long hiatus since the previous maintainer was no longer able to spend much time on the crate; thanks to @quodlibetor for their stewardship of the chrono crate for many years! The new maintainers are @djc and @esheppa. Our first priority has been fixing the soundness issues with calls to
localtime_r()
as first reported in #499 and the RUSTSEC-2020-0159 advisory. In order to do this we adapted code from the tz-rs crate maintained by @x-hgg-x for use within chrono -- thanks for working on that! With the new implementation, chrono uses safe Rust code to parse the timezone data files on Unix platforms directly instead of relying on libc.Due to compatibility reasons, this release does not yet remove the time 0.1 dependency, though chrono 0.4.20 does not depend on the vulnerable parts of the time 0.1.x versions. In a future 0.5 release, we will remove the time dependency.
The minimum supported Rust version for 0.4.20 is 1.32.0, which is intentionally still quite conservative. If you are using chrono 0.4 with a Rust version older than 1.52, we'd like to hear from you since we'd like to further modernize the code base to ease maintenance.
Fixes
localtime_r()
by parsing timezone files in Rust on Unix (#677 and #728)Duration::abs()
behavior in case of negative durations with nanoseconds (#734, thanks to @abreis)Additions
ParserErrorKind
public and available throughParseError::kind()
(#588, thanks to @sbrocket)MIN
andMAX
const values in favor of free-standing consts (#726)NaiveDate
(#732 with follow up in #752, thanks to @avantgardnerio)NaiveWeek
type to facilitate week-based calculations (#666, thanks to @sestrella)NaiveDateTime::and_local_timezone()
method (#711, thanks to @botahamec)DateTime::from_local()
method (#572, thanks to @retrhelo)NaiveDateTime
(#664, thanks to @nickelc)DoubleEndedIterator
forNaiveDateDaysIterator
/NaiveDateWeeksIterator
(#697, thanks to @teobouvard)std::iter::Sum
forDuration
(#522, thanks to @jakevossen5)years_since()
method toDateTime
/Date
(#557 then #707, thanks to @yozhgoor)AddAssign
/SubAssign
forDateTime
/Date
(#698, thanks to @MrGunflame)Non-functional improvements
Utc::now()
(#647, thanks to @ModProg)DateTime::with_timezone()
(#747, thanks to @kevincox)naive
serde integration (#616, thanks to @nickelc)extern crate
statements and outdated comments (#665, thanks to @nickelc)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.