Cargo Features

[dependencies]
clia-time = { version = "0.3.10", default-features = false, features = ["alloc", "formatting", "large-dates", "local-offset", "macros", "parsing", "quickcheck", "serde-human-readable", "serde-well-known", "std", "rand"] }
default = std

The std feature is set by default whenever clia-time is added without default-features = false somewhere in the dependency tree.

alloc quickcheck? std
formatting serde-human-readable? serde-well-known? = itoa, std

Affects clia-time::formatting, clia-time::format_description

large-dates

use case for weak feature dependencies (rust-lang/cargo#8832)

Enables large-dates of time-macros

local-offset = std
macros = time-macros

Affects clia-time::macros

parsing serde-human-readable? serde-well-known?

Affects clia-time::parsing, clia-time::format_description

quickcheck = alloc, quickcheck-dep
serde-human-readable = formatting, parsing, serde
serde-well-known = formatting, parsing

use case for weak feature dependencies (alloc could just require serde?.alloc)

Enables alloc of serde

Affects serde::rfc2822, serde::rfc3339

std default formatting? local-offset? = alloc

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.

itoa formatting?
quickcheck-dep quickcheck?

Enables quickcheck

rand implicit feature

Enables rand

rand:

Random number generators and other randomness functionality

serde serde-human-readable? serde-well-known?

Affects clia-time::serde

time-macros large-dates? macros?