Crates.io | waifupics-rs |
lib.rs | waifupics-rs |
version | 0.1.1 |
source | src |
created_at | 2021-07-07 20:17:35.567696 |
updated_at | 2021-07-09 08:32:24.979885 |
description | Rust wrapper for waifu.pics. |
homepage | |
repository | https://github.com/notmarek/waifupics-rs |
max_upload_size | |
id | 420028 |
size | 44,497 |
Rust wrapper for waifu.pics.
Cargo.toml
waifupics-rs = "0.1"
#[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(())
}