Skip to content

deps: replace chrono-english with interim - #9

Open
josefbacik wants to merge 1 commit into
masoncl:mainfrom
josefbacik:migrate-chrono-english-to-interim
Open

josefbacik wants to merge 1 commit into
masoncl:mainfrom
josefbacik:migrate-chrono-english-to-interim

Conversation

@josefbacik

Copy link
Copy Markdown

Summary

  • chrono-english is unmaintained (upstream issue) and carries an unfixed security advisory. The recommended migration path is interim, a maintained fork with the same API surface.
  • Swap the dependency in Cargo.toml, enabling the chrono_0_4 feature so our existing chrono::DateTime<Utc> call site works unchanged.
  • The only code change is the crate path in parse_date() in src/date_utils.rs, plus comment updates. interim also drops the scanlex transitive dep in favor of logos.

Test plan

  • cargo fmt clean
  • cargo clippy --all-targets -- -D warnings clean
  • cargo test passes (228 lib tests + integration tests), including the 9 date_utils tests covering yesterday, today, N days/weeks/months ago, ISO dates, and invalid input

🤖 Generated with Claude Code

chrono-english is unmaintained and carries an unfixed security advisory.
interim is its maintained fork with the same API surface, so the only
code change is the crate path in parse_date(). It is pulled in with the
chrono_0_4 feature so the existing chrono::DateTime<Utc> call site works
unchanged, and the test suite in date_utils covers the same inputs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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