feat!: replace chrono/chrono-tz with jiff behind newtypes#80
Merged
Conversation
BREAKING CHANGE: Value/QueryParam date variants now use rsmgclient-owned Date/LocalTime/LocalDateTime/Duration newtypes instead of chrono::Naive*/ Duration. jiff is a private implementation detail, so future datetime-backend swaps stay non-breaking. - drop chrono + chrono-tz deps; add jiff (bundles tzdb, no separate tz crate) - mg_value_datetime_zone_id now resolves the instant in its IANA zone via jiff TimeZone instead of manual chrono-tz offset math - Duration wraps jiff SignedDuration (flat duration, matching prior semantics) - Display output preserved (LocalDateTime space separator, Duration PT..S) Note: zoned DateTime now reports zone-local wall-clock fields (previously UTC fields + separate offset); identical for UTC, corrected for other zones.
ddffed6 to
96e026f
Compare
Merged
antejavor
added a commit
that referenced
this pull request
Jul 10, 2026
The chrono/chrono-tz -> jiff migration (#80) changes public Date, LocalTime, LocalDateTime, and Duration types, which is a breaking change for consumers matching or constructing those variants.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
BREAKING CHANGE: Value/QueryParam date variants now use rsmgclient-owned Date/LocalTime/LocalDateTime/Duration newtypes instead of chrono::Naive*/ Duration. jiff is a private implementation detail, so future datetime-backend swaps stay non-breaking.
Note: zoned DateTime now reports zone-local wall-clock fields (previously UTC fields + separate offset); identical for UTC, corrected for other zones.
@andrejtonev , you have to release current master, then merge thus one and bump the version for this one.
Existing users will have to update their code, but get 1 less dependency and a more correct crate than chrono.
Future time backend changes will not break the contract as this crate own it.