Skip to content

Conversation

@BurntSushi
Copy link
Member

@BurntSushi BurntSushi commented Apr 13, 2025

We weren't really using chrono for anything other than getting the
current time and formatting it for logs. So the switch to Jiff here
is pretty uninteresting.

Unfortunately, this doesn't quite get us to a point where chrono
can be removed. From what I can tell, we're still bringing it via
tracing-subscriber
and
quick-junit.
tracing-subscriber does have an
issue open about Jiff,
but there's no movement on it.

Normally I'd suggest holding off on this since it doesn't get us all of
the way there and it would be better to avoid bringing in two datetime
libraries, but we are, it appears, already there. In particular,
env_logger brings in Jiff. So this PR doesn't really make anything
worse, but it does bring us closer to an all-Jiff world.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 13, 2025

mypy_primer results

No ecosystem changes detected ✅

@github-actions
Copy link
Contributor

github-actions bot commented Apr 13, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

We weren't really using `chrono` for anything other than getting the
current time and formatting it for logs.

Unfortunately, this doesn't quite get us to a point where `chrono`
can be removed. From what I can tell, we're still bringing it via
[`tracing-subscriber`](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/)
and
[`quick-junit`](https://docs.rs/quick-junit/latest/quick_junit/).
`tracing-subscriber` does have an
[issue open about Jiff](tokio-rs/tracing#3128),
but there's no movement on it.

Normally I'd suggest holding off on this since it doesn't get us all of
the way there and it would be better to avoid bringing in two datetime
libraries, but we are, it appears, already there. In particular,
`env_logger` brings in Jiff. So this PR doesn't really make anything
worse, but it does bring us closer to an all-Jiff world.
@BurntSushi BurntSushi merged commit 1d49e71 into main Apr 15, 2025
23 checks passed
@BurntSushi BurntSushi deleted the ag/jiff branch April 15, 2025 11:47
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.

3 participants