validkit 1.3.1

Typed newtypes for validated domain primitives — email, URL, cron, tenant, locale, and more
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.85"
name = "validkit"
version = "1.3.1"
build = false
exclude = ["/target"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed newtypes for validated domain primitives — email, URL, cron, tenant, locale, and more"
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",
]

[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"