Skip to content

Move docket-rs to jiff 1 and croner 5 - #637

Merged
chrisguidry merged 4 commits into
mainfrom
jiff-1
Nov 25, 2026
Merged

chrisguidry merged 4 commits into
mainfrom
jiff-1

Conversation

@chrisguidry

@chrisguidry chrisguidry commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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, in two places. The jiff-02 feature is gone, because jiff 0.2's TimeZone cannot cross to jiff 1's both exactly and infallibly. From<Timestamp> for SystemTime is 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 with SystemTime::try_from(jiff::Timestamp::from(when)). From<SystemTime> for Timestamp stays.

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

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T13:40:12.888894Z f959e0d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread rust/docket/src/time/tests.rs Resolved
chrisguidry and others added 3 commits November 25, 2026 08:41
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>
@chrisguidry
chrisguidry enabled auto-merge (squash) November 25, 2026 14:41
@chrisguidry
chrisguidry merged commit 3089609 into main Nov 25, 2026
58 checks passed
@chrisguidry
chrisguidry deleted the jiff-1 branch November 25, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant