Cargo Features

[dependencies]
domainstack = { version = "1.1.1", default-features = false, features = ["std", "regex", "derive", "async", "chrono", "serde"] }
default = std

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

std default
regex

Enables once_cell and regex

Affects string::email, string::url, string::matches_regex, string::try_matches_regex

derive serde? = domainstack-derive
async

Enables async-trait

chrono

Enables chrono

Affects rules::datetime

serde = derive

Enables serde, serde of domainstack-derive

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.

domainstack-derive derive? serde?