# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "garde"
version = "0.9.2"
description = "Validation library"
readme = "README.md"
keywords = [
    "validation",
    "validate",
    "valid",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jprochazk/garde"
resolver = "1"

[dependencies.card-validate]
version = "2.2"
optional = true

[dependencies.garde_derive]
version = "0.9.0"
optional = true
default-features = false

[dependencies.idna]
version = "0.3"
optional = true

[dependencies.once_cell]
version = "1"
optional = true

[dependencies.phonenumber]
version = "0.3"
optional = true

[dependencies.regex]
version = "1"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.url]
version = "2"
optional = true

[features]
credit-card = ["dep:card-validate"]
default = [
    "derive",
    "serde",
    "url",
    "credit-card",
    "phone-number",
    "email",
    "email-idna",
    "pattern",
]
derive = ["dep:garde_derive"]
email = [
    "dep:regex",
    "dep:once_cell",
]
email-idna = ["dep:idna"]
nightly-error-messages = []
pattern = [
    "dep:regex",
    "dep:once_cell",
    "garde_derive?/regex",
]
phone-number = ["dep:phonenumber"]
serde = ["dep:serde"]
url = ["dep:url"]
