validator
Common validation functions (email, url, length, ...) and trait - to be used with `validator_derive`
0.21.0
61M downloads/mo
#1092 most downloaded on crates.io
Keats/validator
What this package is like to depend on
Last release 27 days ago
27 Jul 2026
Release timing varies
gaps range from 5 weeks to 1.5 years
Nearly every release is documented
notes for 24 of 26 stable releases
1 version withdrawn
withdrawn after publishing
10 years old
27 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
27 releases · Dec 2016 to Jul 2026
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 27-
0.21.027 Jul 2026 -
0.20.020 Jan 2025Release notes
Open source →- Implement
AsRegexforstd::sync::LazyLock<Regex> - Bug fix for nested issue with custom only running nested if outer passes
- Support
DeserializeforValidationErrors
- Implement
-
0.19.003 Nov 2024Release notes
Open source →- Swap to using proc-macro-error-2 instead of proc-macro-error for Syn
- Bumped MSRV to 1.81 because of error naming changes.
- Add more ValidateRegex impl
-
0.18.111 Apr 2024 -
0.18.005 Apr 2024Release notes
Open source →- Fix regressions from the derive rewrite, some things are back to 0.16 (eg custom functions)
- Remove require_nested, use required and nested validators instead
- Always require
nestedon the field for nested validation
-
0.17.004 Mar 2024Release notes
Open source →- Derive macro has been entirely rewritten
- Validation is now done through traits that you can implement
- Remove phone validator
- Remove automatic use of serde rename for fields name (temporary)
-
0.16.115 Jun 2023Nothing published for this version
-
0.16.025 Jul 2022Release notes
Open source →- Allow passing code/message to
required - Add
does_not_containvalidator - Check email length before validating it
- Allow passing code/message to
-
0.15.003 May 2022Release notes
Open source →- Allow passing args to schema validator
- Implement HasLen for map/set types
- Remove
validator_typesfrom validator crate - Add ValidationErrors::errors_mut
- Ignore unsupported fields rather than erroring
-
0.14.029 Jun 2021Release notes
Open source →- Allow passing arguments to custom functions
- Better
Displayimplementation - Better parsing of schema validation function in derive
-
0.13.022 Mar 2021 -
0.12.027 Nov 2020Release notes
Open source →- Allow
lengthandrangevalidators to take a reference to a variable - Make validator work with
Option<Vec<_>> - Support reference for length types
- Fix
phone,unicandcardfeature to actually work
- Allow
-
0.11.009 Sep 2020Release notes
Open source →- Add a
derivefeature so you don't need to addvalidator_deriveto yourCargo.toml
- Add a
-
0.10.109 Jun 2020Release notes
Open source →- Add a blanket Validate implementation for references
- Add
RequiredandRequiredNestedvalidators
-
0.10.020 Oct 2019 -
0.9.013 Jul 2019Release notes
Open source →ValidationErrors::errorsandValidationErrors::field_errorsnow use&selfinstead ofself- Move to edition 2018
-
0.8.019 Sep 2018 -
0.7.127 Jul 2018 -
0.7.029 May 2018 -
0.6.305 Dec 2017 -
0.6.208 Nov 2017 -
0.6.108 Nov 2017 withdrawn -
0.6.012 Aug 2017 -
0.4.030 Jan 2017 -
0.3.017 Jan 2017Release notes
Open source →- Add
containsandregexvalidator - BREAKING: change
Errorstype to be a newtype in order to extend it
- Add
-
0.2.017 Jan 2017Release notes
Open source →- Remove need for
attr_literalsfeature - Fix error when not having validation on each field
- Add struct level validation
- Add
must_matchvalidator
- Remove need for
-
0.1.028 Dec 2016Nothing published for this version