Repository navigation
Update Rust crate jiff to v1 - #80
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
9fae038 to
4794433
Compare
4794433 to
a3b25b6
Compare
|
Closing for now: env_logger 0.11 (which fastframe-log and the apps use) still depends on jiff 0.2, so jiff 1.0 would put two copies in every app. We'll move once env_logger does. |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
0.2→1.0Release Notes
BurntSushi/jiff (jiff)
v1.0.0Compare Source
==================
This marks the Jiff 1.0 release. Barring some unforeseen major problem with the
API, this release marks an indefinite commitment to 1.x.y. Consumers of this
library should feel confident about putting Jiff types into their public API.
New major versions of Jiff will not be made lightly.
The most significant breaking change in this release large but simple: the
Zonedtype has been renamed toZonedDateTime. This also impacts APIs likeTimestamp::to_zoned, which are now calledTimestamp::to_zoned_datetime. Theremaining breaking changes are pretty minor and shouldn't impact most users.
Enhancements:
Bump MSRV to Rust 1.85.
Use
core::error::Errorin lieu ofstd::error::Error.BREAKING: Make
Zoned::iso_week_datetake&selfinstead ofself.Make more methods take
&self.Turn
Custominto a trait object.BREAKING: Make
Offset::saturating_addfallible.BREAKING: Make
impl Sub for Timestampreturn aSignedDuration.BREAKING: Seal the
ToSpantrait.Provide an accessor for an underlying
std::io::Error.BREAKING: Make conversions from
TimestamptoSystemTimefallible.BREAKING: Rename
ZonedtoZonedDateTime.BREAKING: Make
jiff_tzdb::VERSIONrequired.Add
Span::to_friendlyroutine as a convenience forformat("{:#}", span).Documentation:
Clarify specification labeling in formatting table.
Clarify the use of the propleptic Gregorian calendar.
Performance:
Add
inline(never)tostrtimeroutine.v0.2.46Compare Source
===================
Bug fixes:
jiff_core::util::ArrayStrhas an unsound API.Documentation:
Fix documentation inconsistencies.
Performance:
Skip extension parsing for plain directives in strptime.
v0.2.45Compare Source
===================
Enhancements:
Support ECMAScript's "primary" time zone identifiers.
Bug fixes:
Handle zero span multiplication.
Constrain ISO week numbers to the year's last week.
Timestamp::checked_add_secondsproduces incorrect results across the Unix epoch.v0.2.44Compare Source
===================
Enhancements:
Upgrade Jiff's bundled IANA Time Zone Database to tzdb
2026f.Make
jiff::civil::Weekdaymethodsconstwhere possible.Bug fixes:
Timestamp subtraction assignment.
Correct some boundary conditions on
Timestamp.v0.2.43Compare Source
===================
This release includes a few new minor API additions.
Enhancements:
Add
jiff::tz::reset_system_time_zone_cache.Expose
relativebuilder option onSpan*types.Add
jiff_core::tz::posix::ParseError::is_missing_dst_transition_rulepredicate.
v0.2.42Compare Source
===================
This release includes a couple of bug fixes where panics could occur when they
should not have been. Specifically in
Span::totalandSpan::checked_add.Bug fixes:
Fix a panic in
Span::checked_addwhen an internal addition would overflowa
SignedDuration's minimum/maximum values.Fix a panic in
Span::totalwhen a time zone transition boundary was crossed.v0.2.41Compare Source
===================
This release includes a bug fix for time zone transition lookups for timestamps
before the Unix epoch with a non-zero nanosecond component.
Bug fixes:
Fix timezone transition lookup in TZif data for negative timestamps with a
non-zero nanosecond component.
v0.2.40Compare Source
===================
This release should help reduce the number of entries Jiff adds to
Cargo.lockby default. This also improves performance for datetime<->timestamp
conversions.
Enhancements:
Don't add
defmtand its dependencies toCargo.lockwhen thedefmtfeature isn't enabled.
Performance:
Add branch-free implementation for part of datetime <-> timestamp conversions.
v0.2.39Compare Source
===================
This release gathers a smattering of performance improvements and bug fixes.
Enhancements:
Added optional
serdesupport tojiff-sqlx.Update the Windows time zone names.
Avoid allocating IANA name during a
Zoned::strftimecall.Avoid a second offset lookup when adding calendar units.
Bug fixes:
Fix
Timestamp::from_nanosecondpanic on out-of-range input.Fix optional deserializers dropping null under
#[serde(flatten)].Tweak "lossless" wording for round-tripping
Zonedvalues.Fixes a panic when printing some very large durations.
Fixes a bug where parsing some very large spans gave an incorrect result.
Fixes a panic in
Span::totalfor a zero span with a calendar unit.Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 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 was generated by Mend Renovate. View the repository job log.