Skip to content

v0.9.0

Compare
Choose a tag to compare
@jprochazk jprochazk released this 29 Mar 19:29
· 271 commits to main since this release

Breaking changes

  • garde::rules::length::Size was renamed to HasLength, and the size method to length
  • All rule traits working on string types now have blanket impls over AsRef<str>. This includes:
    • alphanumeric
    • ascii
    • contains
    • credit_card
    • email
    • ip
    • pattern
    • phone_number
    • prefix
    • suffix
    • url
  • Rule trait methods were renamed to match the pattern validate_<rule>, e.g. garde::rules::Url::try_parse_url was changed to validate_url.

Other changes

All the rule traits should now be fully documented.

Full Changelog: https://github.com/jprochazk/garde/compare/v0.8.1..v0.9.0