Repository navigation
feat!: replace chrono with jiff - #1198
Open
FalkWoldmann wants to merge 3 commits into
Open
FalkWoldmann wants to merge 3 commits into
FalkWoldmann wants to merge 3 commits into
Conversation
`DateTime<Utc>` fields are now `jiff::Timestamp` and the duration encodings wrap `jiff::SignedDuration`. For timestamps from year 0 on the JSON stays as it was: RFC 3339 timestamps are still written with zero, three, six or nine fractional digits. `Timestamp` ends at 9999-12-30T22:00:00Z, so later values no longer deserialize.
`LambdaLog::time`, `LambdaTelemetry::time` and `Span::start` are now `jiff::Timestamp`. Telemetry from year 0 on is serialized as before.
This branch has not been deployed
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.
📬 Issue #, if available: #1191
✍️ Description of changes:
I replaced chrono with jiff 1 in
aws_lambda_eventsandlambda-extension, since chrono's maintainer is winding it down (chronotope/chrono-tz#231). The timestamp fields are public, so both crates need a major, and jiff needs MSRV 1.85. I kept the JSON output the way chrono wrote it. jiff'sTimestampends at 9999-12-30T22:00:00Z, so later values fail to deserialize now.The semver job fails until you bump the version, and clippy on stable fails in
lambda-runtime/src/diagnostic.rson main too🔏 By submitting this pull request
cargo +nightly fmt.cargo clippy --fix.