rustapi-validate 0.2.0

Type-safe request validation for RustAPI. Wrapper around the `validator` crate with deep framework integration.
Documentation
[package]

name = "rustapi-validate"

description = "Type-safe request validation for RustAPI. Wrapper around the `validator` crate with deep framework integration."

documentation = "https://docs.rs/rustapi-validate"

version.workspace = true

edition.workspace = true

authors.workspace = true

license.workspace = true

repository.workspace = true

homepage.workspace = true



[dependencies]

# Validation (internal - not exposed in public API)



# Serialization

serde = { workspace = true }

serde_json = { workspace = true }



# HTTP types for response

http = { workspace = true }



# Async support for v2 validation

async-trait = { workspace = true }



# Regex for pattern validation

regex = "1.10"



# Internationalization (optional — English fallbacks ship without this)
rust-i18n = { version = "3.0", optional = true }


# Re-export derive macro

rustapi-macros = { workspace = true }



[dev-dependencies]

tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

proptest = "1.4"

# STRIPPED FOR PUBLISH: rustapi-core = { workspace = true, default-features = false }

[features]
default = []
i18n = ["dep:rust-i18n"]

[[test]]
name = "i18n"
path = "tests/i18n.rs"
required-features = ["i18n"]