annotated 0.4.0

Declarative validation for structs and enums, like data annotations, that works with serde: every broken rule and missing field in one error
Documentation
[package]
name = "annotated"
description = "Declarative validation for structs and enums, like data annotations, that works with serde: every broken rule and missing field in one error"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
readme = "../../README.md"
keywords = ["validation", "validator", "data-annotations", "serde", "derive"]
categories = ["encoding", "web-programming", "rust-patterns"]

[features]
default = ["serde"]
serde = ["dep:serde"]
json = ["serde", "dep:serde_json"]
json-schema = ["dep:serde_json", "annotated-derive/json-schema"]
regex = ["dep:regex", "annotated-derive/regex"]
unicode = ["dep:unicode-segmentation"]

[dependencies]
annotated-derive = { version = "=0.4.0", path = "../annotated-derive" }
regex = { version = "1.13.1", optional = true }
serde = { version = "1.0.229", optional = true }
serde_json = { version = "1.0.154", optional = true }
unicode-segmentation = { version = "1.13.3", optional = true }

[dev-dependencies]
allocation-counter = "0.8.1"
iri-string = "0.7.14"
proptest = { version = "1.12.0", default-features = false, features = ["std"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.154"
serde_test = "1.0.177"
trybuild = "1.0.122"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints]
workspace = true