v0.10.0
Breaking changes
Errors
now has a newNested
variant.Display
now uses the output offlatten
instead of only recursively printing errors.
Fixes
Result
aliases declared in the same scope as the output of theValidate
derive macro will no longer cause conflicts. (#24)
New features
dive
now works together with other rules:
#[derive(garde::Validate)]
struct Item {
#[garde(ascii)]
field: String,
}
#[derive(garde::Validate)]
struct Example {
#[garde(length(min=1), dive)]
items: Vec<Item>,
}
- each field may now have any number of
custom
rules:
#[derive(garde::Validate)]
struct Example {
#[garde(custom(a), custom(b), custom(c))]
items: String,
}
What's Changed
- Fix hygiene of
Result
in derivedValidate
impl by @jprochazk in #24 - Add CI by @jprochazk in #25
- Derive macro refactor by @jprochazk in #28
Full Changelog: https://github.com/jprochazk/garde/compare/v0.9.2..v0.10.0