Chrono dependency in 0.7.4 release
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 (https://github.com/chronotope/chrono/commit/ac383d5303f732a3ab27e6c2d94fd5ee9895f52c). 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
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.
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.
Had the same exact issue. Can confirm that cargo update fixed the issue.