fix(deps): update rust crate chrono to 0.4.22 #44
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.22
Release Notes
chronotope/chrono
v0.4.22
Compare 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
Compare 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
Compare 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.