All user visible changes to this project will be documented in this file. This project adheres to Semantic Versioning, as described for Rust libraries in RFC #1105
- implementations of traits
Clone
,Copy
,PartialEq
,Eq
andDebug
forValidated<C, T>
no longer require type parameterC
to implement those traits.
- fix clippy warnings
- bump versions of dev-dependencies
- deny unsafe code (instead of warn)
- use parameters of type
usize
insteadu32
for the constraintsLength
andCharCount
, which enables an implementation that should never panic (issue #4) - rename constraint
FromTo
toMustDefineRange
(issue #6)
- implement
TryFrom<usize>
forValue
- add new constraint
NonZero
implemented for all primitive integer and float types as well as for all types that implement theZero
trait of thenum-traits
crate - add support for validating
BigInt
values of thenum-bigint
crate - add new
Pattern
constraint which is implemented using theregex
crate (optional crate feature)
- wrong error code for constraint
CharCount::MinMax
when value has too few characters (issue #5)
- implementation of
Validate<MustMatch, RelatedFields>
for(T, T)
requires onlyPartialEq
instead of totalEq
- implement
HasEmptyValue
,HasLength
andHasMember
forVecDeque
,LinkedList
,BTreeSet
andBTreeMap
(issue #2)
- make struct
Parameter
public (issue #3) - minor fixes in documentation
First release