Cargo Features
[dependencies]
chrono = { version = "0.4.39", default-features = false, features = ["std", "alloc", "libc", "winapi", "clock", "now", "oldtime", "wasmbind", "unstable-locales", "rkyv", "rkyv-16", "rkyv-32", "rkyv-64", "rkyv-validation", "serde", "arbitrary"] }
- default = clock, oldtime, std, wasmbind
-
Don't forget to adjust
ALL_NON_EXCLUSIVE_FEATURES
in CI scripts when adding a feature or an optional dependency. - std default now? = alloc
- alloc std
-
Affects
formatting::DelayedFormat
,formatting::format
,formatting::format_item
… - libc
- winapi clock = windows-targets
- clock default = android-tzdata, iana-time-zone, now, winapi
- now clock = std
- oldtime default
- wasmbind default = js-sys, wasm-bindgen
- unstable-locales = pure-rust-locales
- rkyv
-
Note that rkyv-16, rkyv-32, and rkyv-64 are mutually exclusive.
Enables size_32 of rkyv ^0.7.43
Affects
chrono::rkyv
… - rkyv-16
-
Enables size_16 of rkyv ^0.7.43
Affects
chrono::rkyv
… - rkyv-32
-
Enables size_32 of rkyv ^0.7.43
Affects
chrono::rkyv
… - rkyv-64
-
Enables size_64 of rkyv ^0.7.43
Affects
chrono::rkyv
… - rkyv-validation
-
Enables validation of optional rkyv ^0.7.43
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
Affects
chrono::serde
,naive::serde
… - pure-rust-locales unstable-locales?
- android-tzdata android clock
- iana-time-zone unix clock
- js-sys wasm32 not emscripten wasi wasmbind
- wasm-bindgen wasm32 not emscripten wasi wasmbind
- windows-targets win winapi?
- arbitrary implicit feature
-
Enables arbitrary
arbitrary:
The trait for generating structured data from unstructured data