extern crate caffrey; use caffrey::{Forger, Locale}; fn direct_usage() { let locale = EnUsLocale::new(); let password_forger = PasswordForger::new(locale); password_forger.forge(locale); } fn indirect_usage() { let locale = Locale::en_us(); let password_forger = Forger::password(locale); password_forger.forge(locale); } fn main() { direct_usage(); indirect_usage(); }