[dependencies.byte-unit]
default-features = false
optional = true
version = "5.1"
[dependencies.data-encoding]
default-features = false
features = ["alloc"]
optional = true
version = "2.5"
[dependencies.idna]
default-features = false
features = ["alloc"]
optional = true
version = "0.5"
[dependencies.phonenumber]
optional = true
version = "0.3"
[dependencies.regex-dep]
optional = true
package = "regex"
version = "1"
[dependencies.rocket]
default-features = false
optional = true
version = "0.5"
[dependencies.semver-dep]
default-features = false
optional = true
package = "semver"
version = "1"
[dependencies.serde]
default-features = false
features = ["alloc"]
optional = true
version = "1"
[dependencies.serde_json]
default-features = false
features = ["alloc"]
optional = true
version = "1"
[dependencies.str-utils]
optional = true
version = "0.1"
[dependencies.url-dep]
optional = true
package = "url"
version = "2"
[dependencies.validators-derive]
optional = true
version = "0.25"
[dev-dependencies.lazy_static]
version = "1.4"
[dev-dependencies.once_cell]
version = "1.19"
[features]
all-validators = ["base32", "base32_decoded", "base64", "base64_decoded", "base64_url", "base64_url_decoded", "bit", "boolean", "byte", "domain", "email", "host", "http_url", "http_ftp_url", "ip", "ipv4", "ipv6", "json", "length", "line", "mac_address", "number", "phone", "regex", "semver", "semver_req", "signed_integer", "text", "unsigned_integer", "url", "uuid"]
base32 = ["validators-derive?/base32"]
base32_decoded = ["validators-derive?/base32_decoded", "data-encoding"]
base64 = ["validators-derive?/base64"]
base64_decoded = ["validators-derive?/base64_decoded", "data-encoding"]
base64_url = ["validators-derive?/base64_url"]
base64_url_decoded = ["validators-derive?/base64_url_decoded", "data-encoding"]
bit = ["validators-derive?/bit", "byte-unit/bit"]
boolean = ["validators-derive?/boolean"]
byte = ["validators-derive?/byte", "byte-unit/byte"]
byte-unit = ["dep:byte-unit"]
byte-unit-u128 = ["byte-unit?/u128"]
data-encoding = ["dep:data-encoding"]
default = ["std", "all-validators", "derive"]
derive = ["dep:validators-derive"]
domain = ["validators-derive?/domain", "std", "idna"]
email = ["validators-derive?/email", "std", "idna"]
full = ["validators-derive?/full"]
host = ["validators-derive?/host", "std", "idna"]
http_ftp_url = ["validators-derive?/http_ftp_url", "url", "str-utils"]
http_url = ["validators-derive?/http_url", "url", "str-utils"]
idna = ["dep:idna"]
ip = ["validators-derive?/ip", "std"]
ipv4 = ["validators-derive?/ipv4", "std"]
ipv6 = ["validators-derive?/ipv6", "std"]
json = ["validators-derive?/json", "serde_json"]
length = ["validators-derive?/length"]
line = ["validators-derive?/line"]
mac_address = ["validators-derive?/mac_address"]
number = ["validators-derive?/number"]
phone = ["validators-derive?/phone", "phonenumber"]
phonenumber = ["dep:phonenumber", "std"]
regex = ["validators-derive?/regex", "regex-dep"]
regex-dep = ["dep:regex-dep", "std"]
rocket = ["validators-derive?/rocket", "dep:rocket", "std", "byte-unit?/rocket"]
semver = ["validators-derive?/semver", "semver-dep"]
semver-dep = ["dep:semver-dep"]
semver_req = ["validators-derive?/semver_req", "semver-dep"]
serde = ["validators-derive?/serde", "dep:serde", "byte-unit?/serde", "url-dep?/serde", "semver-dep?/serde"]
serde_json = ["dep:serde_json", "serde"]
signed_integer = ["validators-derive?/signed_integer"]
std = ["validators-derive?/std", "data-encoding?/std", "idna?/std", "byte-unit?/std", "serde_json?/std", "semver-dep?/std", "serde?/std"]
str-utils = ["dep:str-utils"]
test = ["validators-derive?/test"]
text = ["validators-derive?/text"]
unsigned_integer = ["validators-derive?/unsigned_integer"]
url = ["validators-derive?/url", "url-dep"]
url-dep = ["dep:url-dep", "std"]
uuid = ["validators-derive?/uuid"]
[package]
authors = ["Magic Len <len@magiclen.org>"]
categories = ["no-std", "parser-implementations", "value-formatting"]
description = "This library is designed for validating and modeling user input. The crate includes models, functions, traits, errors, and other dependencies."
edition = "2021"
homepage = "https://magiclen.org/validators"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE"]
keywords = ["validator", "validation", "user", "serde", "rocket"]
license = "MIT"
name = "validators"
readme = "README.md"
repository = "https://github.com/magiclen/validators"
rust-version = "1.69"
version = "0.25.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]