All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add
as_ref()
toValidated
- As
Validated
now has an inherentas_ref()
method, code that used to callAsRef::as_ref
on it may now behave differently.AsRef
impl is still available and can be called explicitly, or simply useDeref
instead.
- Add support for
std::borrow::Cow
- Switch license from Apache/MIT to MPL-2.0
- Tag validated values by wrapping them into
Validated
- Rename
semval::Result
intosemval::ValidationResult
for disambiguation and consistency withprelude
.
- Upgraded to Rust 2021 Edition
- Added
#[must_use]
attribute toContext
functions - Removed deprecated functions
No (notable) API changes.
- Use GitHub Actions for CI
- Update Rust edition from 2018 to 2021
- Added implicit implementation of
Validate
forVec<T>
if featurestd
is enabled
- Added implicit implementation of
Validate
for slices
- Added implicit implementation of
Validate
trait reference types
Unreleased
- Added utility trait
IsValid
for boolean validity checks
- Renamed functions with a map parameter:
validate_and_map()
becomesvalidate_with()
map_and_merge_result()
becomesmerge_result_with()
- Added traits
ValidatedFrom
andIntoValidated
for type-safe validation
- Generalized
validate()
for allInvalidity
types that implementInto
- Initial public release