waifupics-rs

Crates.iowaifupics-rs
lib.rswaifupics-rs
version0.1.1
sourcesrc
created_at2021-07-07 20:17:35.567696
updated_at2021-07-09 08:32:24.979885
descriptionRust wrapper for waifu.pics.
homepage
repositoryhttps://github.com/notmarek/waifupics-rs
max_upload_size
id420028
size44,497
Marek VeselĂ˝ (notmarek)

documentation

README

Rust wrapper for waifu.pics.

Cargo.toml

waifupics-rs = "0.1"

Example

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let img: String = waifupics_rs::get(waifupics_rs::CategorySFW::Bonk).await?;
    println!("Single image: {}", img);
    let imgs: Vec<String> = waifupics_rs::get_many(waifupics_rs::CategorySFW::Bonk).await?;
    println!("Vec of images: {:#?}", imgs);
    Ok(())
}
Commit count: 7

cargo fmt