Skip to content

Rust's datetime library Jiff reaches a stable 1.0

Jiff puts timezone handling at the centre of its API instead of an afterthought, and tools like Cargo and uv already depend on it.

Source: Andrew Gallant

Jiff, a datetime library for Rust, reached 1.0 on 15 November. Its author, Andrew Gallant, is committing to the API indefinitely unless a significant defect turns up, because Jiff already sits inside the public APIs of other widely used crates.

That reach is the real story. Cargo, uv, Starship, fd, Nushell, mise, Jujutsu and uutils/coreutils all depend on it, and AWS’s LLRT JavaScript runtime uses it to implement Temporal. Jiff’s design is heavily inspired by Temporal, the same spec: timezone and daylight-saving handling are built into the core types rather than left to the caller to get wrong. It only covers the proleptic Gregorian calendar, with civil (timezone-free) types sitting alongside the zoned ones.

cargo add jiff anyhow

Why it matters: if you write Rust, you are probably already pulling Jiff in transitively through Cargo or one of the CLI tools above, whether you know it or not. A 1.0 stability promise from a library already this embedded means picking it for new work carries less risk of a breaking upgrade later. For anyone who has followed Temporal’s slow rollout in JavaScript, it is also a working example of that same timezone-first design playing out in a systems language.

Share

Related reading

More from The Wire

All briefs