Cargo Features

[dependencies]
tzdb = { version = "0.7.2", default-features = false, features = ["now", "local", "std", "alloc"] }
default = local, now, std

These default features are set whenever tzdb is added without default-features = false somewhere in the dependency tree.

now default = std

Enables querying the current time in a given time zone:

Affects tzdb::now

local default = std

Enable functions to query the current system time:

Enables iana-time-zone

Affects tzdb::local_tz, now::local, now::local_or

std default local now = alloc

Enable the use of features in the std crate:

Enables std of tz-rs

alloc std

Enable the use of features in the alloc crate: