[package]
edition = "2021"
rust-version = "1.85"
name = "validkit"
version = "1.3.2"
build = false
exclude = ["/target"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified input validation — typed newtypes for email, URL, phone, cron, tenant, locale with proptest"
readme = "README.md"
keywords = [
"validation",
"email",
"url",
"cron",
"newtype",
]
categories = ["rust-patterns"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/validkit"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[package.metadata.layers]
tier = "L0"
[features]
chrono = []
default = ["std"]
derive = ["dep:validkit-derive"]
full = [
"serde",
"chrono",
"url",
"regex",
"openapi",
]
openapi = ["dep:schemars"]
regex = ["dep:regex"]
serde = [
"dep:serde",
"dep:serde_json",
]
std = [
"thiserror/std",
"serde?/std",
"url?/std",
]
url = ["dep:url"]
[lib]
name = "validkit"
path = "src/lib.rs"
[[test]]
name = "accessor_contracts"
path = "tests/accessor_contracts.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "fallback_paths"
path = "tests/fallback_paths.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "mutation_boundaries"
path = "tests/mutation_boundaries.rs"
[[test]]
name = "mutation_kill"
path = "tests/mutation_kill.rs"
[[test]]
name = "openapi_schema"
path = "tests/openapi_schema.rs"
[[test]]
name = "proptest"
path = "tests/proptest.rs"
[[test]]
name = "validation_paths"
path = "tests/validation_paths.rs"
[[bench]]
name = "valid_bench"
path = "benches/valid_bench.rs"
harness = false
[dependencies.idna]
version = "1"
optional = true
[dependencies.regex]
version = "1"
optional = true
[dependencies.schemars]
version = "1"
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
default-features = false
[dependencies.url]
version = "2"
features = ["serde"]
optional = true
[dependencies.validkit-derive]
version = "0.1.0"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.regex]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[lints.clippy]
expect_used = "warn"
indexing_slicing = "deny"
panic = "deny"
unwrap_used = "deny"