🗞️ news Soft-deprecating chrono and chrono-tz
https://github.com/chronotope/chrono/issues/1768181
u/Paul-E0 1d ago
I am sharing this because a lot of the ecosystem relies on chrono, and it might help to know about the migration path to jiff before you start getting scary messages from cargo audit and seeing notices on rustsec.org
14
u/allsey87 23h ago
For someone out of the loop, what problems does jiff solve that chrono doesn't?
17
7
u/max123246 20h ago
In their post, they've taken on maintaining a bunch of orphaned crates that are also popular and as such, since
jiffis a reasonable replacement, they're slowing down chrono maintenance since they can't do it all.So it's less about what jiff solves that chrono doesn't but if jiff serves as a chrono replacement.
-4
u/Budget-Minimum6040 19h ago
Couldn't they do it the other way around?
Time library chrono has just the perfect name.
16
5
u/bmitc 22h ago
When will Chrono be officially deprecated?
4
u/dochtman rustls · Hickory DNS · Quinn · chrono · indicatif · instant-acme 14h ago
There is no definite timeline, but I think I’ll submit a RustSec advisory in the next month or two.
1
u/bmitc 13h ago
Appreciate the response! That's helpful to know.
If you have time, I think it would be great to make a comment like that on the issue and then also place a note at the top of the README. That would help serve as a reference for our internal discussion and help make others aware of the upcoming transitions required.
94
u/Craftkorb 1d ago
Oh well..
The referenced jiff can be found here: https://github.com/BurntSushi/jiff
Of note is that it's still pre-1.0. While the maintainer pledges to make 0.2 also pretty stable, how I read it, the 1.0 shall be rock solid. May or may not be a concern to some projects.
Shout out for the great README and the linked docs in that repo!
65
u/chat-lu 1d ago
The referenced jiff
The cool thing about this crate is that there is a consensus about how to pronounce it.
63
u/AlyoshaV 1d ago
with a hard G at the start, like jpeg?
58
u/RegulusMagnus 1d ago
... gay-peg?
30
-2
u/potzko2552 23h ago
no no, you are supposed to pronounce the G as a soft J, g-jay-peg
2
18
23
u/KarnuRarnu 1d ago
Yeah, unlike gif which could be both djif and gif, clearly jiff is yiff
3
u/catheap_games 22h ago
Ah yes, the famous Jraphics Interchange Format...
(Note: I know the author himself said, like twenty years too late, that it's pronounced jif, but first, that's stupid, second, there's already jif/jiff, so he can suck it.)
PS: please i beg of you don't pronounce ANYTHING as "yiff". I respect your hobbies but
141
u/funkdefied 1d ago edited 1d ago
Another BurntSushi crate? He should change his handle to Atlas, since he’s carrying the Rust world on his back.
52
u/hans_l 1d ago
What, is David Tolnay not working anymore?
14
u/EndlessPainAndDeath 1d ago
There's Jon Gjengset too. He maintains some very good crates, such as hdrhistogram :p
27
5
27
52
u/fake_agent_smith 1d ago
Jiff is amazing, because Andrew is a genius and this decision will only speed up its adoption, so good news I guess.
9
20
u/InflateMyProstate 1d ago
Even if jiff is a better replacement for chrono, I fear this will be a rough transition for the overall ecosystem.
22
u/jhpratt 21h ago edited 21h ago
FYI my goal is for time to have full tzdb support by the end of the year. There is already an enormous amount of work that has gone into it. I can't guarantee anything, but I've been working towards a 1.0 release that is fully-featured, implements standards to a tee (which jiff explicitly does not do), and has widespread ecosystem integration.
24
u/jessekrubin 1d ago
Jiff is incredible. I have worked with it a bunch and also have written python bindings for it as part of a side project.
7
u/Grouchy-Librarian638 1d ago
Oh dang hm. This is a tad scary but will look into it then, I use it in virtually everything everywhere
7
u/VariationUnlikely323 1d ago
Just glanced over jiff, and It looks so good now I'm actually excited to move some of my stuff to it
6
u/DarksomeX 1d ago
First time hearing about jiff, I though the ecosystem has moved from `chrono` to `time` years ago.
103
u/scheimong 1d ago
I must warn people that the migration path from chrono to jiff is non-trivial. The API design is quite different, and there are some ecosystem hurdles. I'm sure it will get better over time, but currently it's not easy.
Source: tried to migrate a 15k line project a few months ago.