booru-rs

Crates.iobooru-rs
lib.rsbooru-rs
version0.2.8
sourcesrc
created_at2022-11-22 16:08:30.991301
updated_at2024-04-13 16:49:23.246715
descriptionAn async Booru client for Rust
homepage
repositoryhttps://github.com/ajiiisai/booru-rs
max_upload_size
id720933
size36,695
Ame (ajiiisai)

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: 56

cargo fmt