Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrono dependency in 0.7.4 release #3118

Open
mirek26 opened this issue Mar 14, 2024 · 3 comments
Open

Chrono dependency in 0.7.4 release #3118

mirek26 opened this issue Mar 14, 2024 · 3 comments
Labels

Comments

@mirek26
Copy link
Contributor

mirek26 commented Mar 14, 2024

Bug Description

Trying to update to 0.7.4 and seeing:

error[E0432]: unresolved import `chrono::TimeDelta`

This is because sqlx specifies a dependency on chrono 0.4.22 but actually depends on 0.4.34 (chronotope/chrono@ac383d5). Bumping chrono dependency in my project resolved this but I should not need to do that

Minimal Reproduction

Info

  • SQLx version: 0.7.4
  • SQLx features enabled: postgres, chrono, runtime-tokio
  • Database server and version: Postgres
  • Operating system: mac os
  • rustc --version: 1.75
@abonander
Copy link
Collaborator

Ah, this is the trap of just running cargo update in a library. It updated chrono locally and for CI, and introduced deprecation warnings that I was then forced to fix because of -D warnings.

@abonander
Copy link
Collaborator

We could fix the chrono dependency and kick out a hotfix, but given that the fix either way is to run cargo update, it doesn't seem hugely necessary.

@Mouwrice
Copy link

Had the same exact issue. Can confirm that cargo update fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants