booru 0.7.0

An async Booru client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use booru::{Client, danbooru::DanbooruClient};

#[tokio::main]
async fn main() {
    let posts = DanbooruClient::builder()
        .limit(5)
        .build()
        .get_popular()
        .await
        .expect("There was an error retrieving posts from the API");

    println!("{:?}", posts);
}