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
somewhere in the dependency tree.default-features = false - 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: - alloc std
-
Enable the use of features in the
alloc
crate: