[package]
name = "rok-validate"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
description = "Request validation for the rok ecosystem — validate!() macro, #[derive(Validate)], Valid<T> extractor"
keywords = ["validation", "axum", "web", "rok"]
categories = ["web-programming"]

[features]
## Enable the Axum Valid<T> extractor.
axum = ["dep:axum"]
## Translate validation messages via rok-i18n when an I18nLayer is active.
i18n = ["dep:rok-i18n"]

[dependencies]
rok-validate-macros = { path = "../rok-validate-macros", version = "0.1.0" }
serde      = { workspace = true }
serde_json = { workspace = true }
thiserror  = { workspace = true }
axum       = { workspace = true, optional = true }
rok-i18n   = { path = "../rok-i18n", version = "0.1", optional = true }

[dev-dependencies]
rok-orm-core = { path = "../rok-orm-core", version = "0.1" }
