1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub mod errors;

#[cfg(feature = "legacy")]
mod legacy;

#[cfg(not(feature = "legacy"))]
mod typed;

#[cfg(feature = "legacy")]
pub use legacy::{email::Email, password::Password};

#[cfg(not(feature = "legacy"))]
pub use typed::{
    email::Email,
    password::{Encrypt, Password, Raw},
    password_checker::{PasswordStrength, PasswordStrengthChecker},
};

pub use errors::{EmailError, PasswordError};