#validation #collection #format #numeric #koruma

koruma-collection

A collection of common validators using koruma

6 releases (breaking)

Uses new Rust 2024

new 0.7.1 Feb 22, 2026
0.7.0 Feb 21, 2026
0.6.0 Feb 15, 2026
0.4.0 Feb 3, 2026
0.1.0 Jan 8, 2026

#2229 in Text processing

MIT/Apache

76KB
1.5K SLoC

koruma-collection

Docs Crates.io Crowdin

A curated set of validators built on top of koruma, organized by domain: string, format, numeric, collection, and general-purpose validators.

[dependencies]
koruma-collection = { version = "*", features = ["full"] }

Features

Standard

  • full: enables all validators and optional dependencies.
  • fmt (default): enables Display implementations for validators.
  • fluent: enables fluent/i18n integration and embedded translations.
  • full-fluent: full + fluent.

Format validators

  • credit-card: validates a credit card number.
  • email: validates an email address.
  • phone-number: validates a phone number.
  • url: validates a URL.

Dependencies

~10–21MB
~230K SLoC