Cargo Features

utcnow = { version = "0.2.5", default-features = false, features = ["std", "fallback", "castaway", "quickcheck", "rkyv", "serde", "arbitrary", "proptest"] }
default = fallback, std

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

std default
fallback default

Features from optional dependencies

castaway implicit feature

Enables castaway


Safe, zero-cost downcasting for limited compile-time specialization

quickcheck implicit feature

Enables quickcheck


Automatic property based testing with shrinking

rkyv implicit feature

Enables rkyv

Versions up until 0.7.26 are broken.

serde implicit feature

Enables serde


A generic serialization/deserialization framework

arbitrary implicit feature

Enables arbitrary

Optional features:

proptest implicit feature

Enables proptest


Hypothesis-like property-based testing and shrinking