rusty-booru

Crates.iorusty-booru
lib.rsrusty-booru
version0.2.1
sourcesrc
created_at2024-01-02 19:11:28.048476
updated_at2024-05-25 01:50:35.017517
descriptionAn async Booru client for Rust
homepage
repositoryhttps://github.com/o-dasher/rusty-booru.git
max_upload_size
id1086566
size49,389
O Thiago (o-dasher)

documentation

https://docs.rs/booru-rs

README

ci-badge crates.io version

booru-rs

An async Booru client for Rust

Overview

The client currently supports:

  • Gelbooru
  • Safebooru
  • Danbooru
  • Konachan
  • R34
  • 3DBooru
  • More... ?

Example

Remember to bring the Client trait into scope with use booru_rs::client::Client;

let posts = GelbooruClient::builder()
    .tag("kafuu_chino")
    .tag("2girls")
    .rating(GelbooruRating::General)
    .sort(GelbooruSort::Score)
    .limit(5)
    .random(true)
    .blacklist_tag(GelbooruRating::Explicit)
    .build()
    .get()
    .await
    .expect("There was an error retrieving posts from the API");
Commit count: 112

cargo fmt