Cargo Features

validator has no features set by default.

validator = { version = "0.16.1", features = ["phone", "card", "unic", "derive", "indexmap"] }
phone = phonenumber

Enables phone of validator_derive

Affects validation::phone

card = card-validate

Enables card of validator_derive

Affects validation::cards

unic = unic-ucd-common

Enables unic of validator_derive

Affects validation::non_control_character

derive = validator_derive

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

validator_derive derive?
card-validate card?
phonenumber phone?
unic-ucd-common unic?
indexmap implicit feature

Enables serde-1 of indexmap ^1