garde 0.23.0

Validation library
Documentation
# 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"
rust-version = "1.87"
name = "garde"
version = "0.23.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validation library"
readme = "README.md"
keywords = [
    "validation",
    "validate",
    "valid",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jprochazk/garde"

[package.metadata.docs.rs]
all-features = true

[features]
credit-card = [
    "dep:card-validate",
    "garde_derive?/credit-card",
]
derive = ["dep:garde_derive"]
email = [
    "regex",
    "garde_derive?/email",
]
email-idna = ["dep:idna"]
full = [
    "derive",
    "serde",
    "url",
    "credit-card",
    "phone-number",
    "email",
    "email-idna",
    "regex",
    "unicode",
]
js-sys = [
    "dep:js-sys",
    "garde_derive?/js-sys",
]
pattern = ["regex"]
phone-number = [
    "dep:phonenumber",
    "garde_derive?/phone-number",
]
regex = [
    "dep:regex",
    "dep:once_cell",
    "garde_derive?/regex",
]
rust_decimal = ["dep:rust_decimal"]
serde = [
    "dep:serde",
    "compact_str/serde",
    "smallvec/serde",
]
unicode = ["dep:unicode-segmentation"]
url = [
    "dep:url",
    "garde_derive?/url",
]

[lib]
name = "garde"
path = "src/lib.rs"

[[example]]
name = "test_if"
path = "examples/test_if.rs"

[[example]]
name = "test_if_complex"
path = "examples/test_if_complex.rs"

[[test]]
name = "feature_flags"
path = "tests/feature_flags.rs"

[[test]]
name = "rules"
path = "tests/rules.rs"

[[test]]
name = "ui"
path = "tests/ui.rs"

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

[dependencies.compact_str]
version = "0.9.0"
default-features = false

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

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

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

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

[dependencies.regex]
version = "1"
features = ["std"]
optional = true
default-features = false

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

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

[dependencies.smallvec]
version = "1.15.1"
default-features = false

[dependencies.unicode-segmentation]
version = "1.13.2"
optional = true

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

[dev-dependencies.glob]
version = "0.3.3"

[dev-dependencies.insta]
version = "1.47.2"

[dev-dependencies.owo-colors]
version = "4"

[dev-dependencies.serde_json]
version = "1.0.150"
features = ["preserve_order"]

[dev-dependencies.trybuild]
version = "1.0"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3.71"