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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

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

[dependencies]
garde_derive = { version = "0.9.0", path = "../garde_derive", optional = true, default-features = false }

serde = { version = "1", features = ["derive"], optional = true }
url = { version = "2", optional = true }
card-validate = { version = "2.2", optional = true }
phonenumber = { version = "0.3", optional = true }
regex = { version = "1", optional = true }
once_cell = { version = "1", optional = true }
idna = { version = "0.3", optional = true }

