Crate features / chrono
Feature flags · chrono 0.4.45 · from crates.io 2026-10-24
chrono features: what each one does, and the line to copy
Short answerchrono 0.4.45 has 17 features. By default it turns on clock, std, oldtime, wasmbind; add default-features = false to start from nothing. It needs Rust 1.62.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
__internal_bench | nothing else (a switch the code checks) | |
alloc | nothing else (a switch the code checks) | |
clock | yes | winapi, iana-time-zone, now |
core-error | nothing else (a switch the code checks) | |
defmt | dep:defmt, pure-rust-locales?/defmt | |
libc | nothing else (a switch the code checks) | |
now | std | |
oldtime | yes | nothing else (a switch the code checks) |
rkyv | dep:rkyv, rkyv/size_32 | |
rkyv-16 | dep:rkyv, rkyv?/size_16 | |
rkyv-32 | dep:rkyv, rkyv?/size_32 | |
rkyv-64 | dep:rkyv, rkyv?/size_64 | |
rkyv-validation | rkyv?/validation | |
std | yes | alloc |
unstable-locales | pure-rust-locales | |
wasmbind | yes | wasm-bindgen, js-sys |
winapi | windows-link |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version chrono declares (rust-version), and the release that changed it:
- 0.4.25 (2023-05-29): Rust 1.56.0
- 0.4.27 (2023-08-29): Rust 1.57.0
- 0.4.32 (2024-01-22): Rust 1.61.0
- 0.4.41 (2025-04-29): Rust 1.62.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p chrono --precise <version>, or use resolver 3, which picks compatible versions for you.
More on chrono
Real downloads, dependents and alternatives: chrono crate data (2.4M real downloads a day, 38,126 dependents).
Security record: chrono advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itchrono crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?