pwned 0.5.0

Simple Have I Been Pwned checker
Documentation
1
2
3
4
5
6
7
8
9
10
11
use pwned::api::*;

#[tokio::main(flavor = "current_thread")]
async fn main() {
    let pwned = PwnedBuilder::default().build().unwrap();

    match pwned.check_password("password").await {
        Ok(pwd) => println!("Pwned? {} - Occurrences {}", pwd.found, pwd.count),
        Err(e) => println!("Error: {}", e),
    }
}