Repository navigation
Move docket-rs to jiff 1 and croner 5 - #637
Merged
Merged
Conversation
jiff 1.0 commits to staying on 1.x, and croner 5 moves its jiff backend to it, so docket-rs can follow both and drop jiff 0.2. Dependabot's grouped cargo update in #635 could not build until this moved, because croner 4 pins jiff 0.2. docket-rs keeps its own Timestamp and TimeZone in its signatures, and both now convert to and from jiff 1's types with From and no feature, so `.at()` and `Cron::timezone` take jiff values as they are. This is a breaking change for docket-rs 0.7.0: the jiff-02 feature is gone, because jiff 0.2's TimeZone cannot cross to jiff 1's both exactly and infallibly, and From<Timestamp> for SystemTime panics on a platform whose SystemTime cannot represent the time, as jiff 0.2's own conversion did. croner 5 refuses month and weekday names outside their own fields and a bare L in the day of the week, as pydocket does; the shared cron conformance table now pins five of those expressions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f959e0d18a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Windows's SystemTime starts in 1601 and counts in 100 ns steps, so Timestamp::MIN panics there and Timestamp::MAX loses precision; Linux and macOS represent both exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is a breaking change for docket-rs 0.7.0. jiff 1 made the conversion fallible, because Windows's SystemTime cannot represent times before 1601, and a From that panics breaks From's contract. A TryFrom or a saturating From would add an error path that Linux never runs, against the 100% coverage gate, and nothing in docket-rs converts a Timestamp to a SystemTime. A caller who needs one converts through jiff with `SystemTime::try_from(jiff::Timestamp::from(when))`. From<SystemTime> for Timestamp stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
jiff 1.0 commits to staying on 1.x, and croner 5 moves its jiff backend to it, so docket-rs can follow both and drop jiff 0.2. Dependabot's grouped cargo update in #635 could not build until this moved, because croner 4 pins jiff 0.2. docket-rs keeps its own Timestamp and TimeZone in its signatures, and both now convert to and from jiff 1's types with From and no feature, so
.at()andCron::timezonetake jiff values as they are.This is a breaking change for docket-rs 0.7.0, in two places. The
jiff-02feature is gone, because jiff 0.2's TimeZone cannot cross to jiff 1's both exactly and infallibly.From<Timestamp> for SystemTimeis gone too: jiff 1 made that conversion fallible, because Windows's SystemTime cannot represent times before 1601, and nothing in docket-rs uses it. A caller who needs a SystemTime converts through jiff withSystemTime::try_from(jiff::Timestamp::from(when)).From<SystemTime> for Timestampstays.croner 5 refuses month and weekday names outside their own fields and a bare L in the day of the week, as pydocket does; the shared cron conformance table now pins five of those expressions.
🤖 Generated with Claude Code