jprochazk / garde

A powerful validation library for Rust
Apache License 2.0
476 stars 28 forks source link

crate won't compile #117

Closed goshleg closed 5 months ago

goshleg commented 5 months ago

With new 0.19.1 version I got build fail:

   Compiling garde v0.19.1
error[E0432]: unresolved import `idna`
  --> /home/ghashy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/garde-0.19.1/src/rules/email.rs:18:5
   |
18 | use idna::AsciiDenyList;
   |     ^^^^ use of undeclared crate or module `idna`

I use this feature set:

garde = { version = "0.19.1", features = ["derive", "email"] }

But if I add email-idna feature it compiles:

garde = { version = "0.19.1", features = ["derive", "email", "email-idna"] }
jprochazk commented 5 months ago

Fixed in v0.19.2