11 releases

0.2.2 Mar 7, 2024
0.2.1 Dec 20, 2023
0.2.0 Nov 29, 2023
0.1.7 Oct 23, 2023

#162 in #protobuf

Download history 2/week @ 2023-12-17 2/week @ 2024-02-18 8/week @ 2024-02-25 122/week @ 2024-03-03 27/week @ 2024-03-10 1/week @ 2024-03-17 78/week @ 2024-03-31

112 downloads per month

Apache-2.0

155KB
3.5K SLoC

dmzj

Cargo Documentation

An async dmzj client for Rust.

Mostly taken from tachiyomi extensions & flutter_dmzj.

Example

use dmzj::Api;

#[tokio::main]
async fn main() {
    let api = Api::new();

    let popular_manga = api.fetch_latest_updates_manga(0).await.unwrap();
    let first = &popular_manga[0];
    let first_id = first.id;

    println!("manga id = {:?}", first_id);

    let response = api.fetch_manga_details(first_id).await.unwrap();

    let description = &response.data.description;
    let title = &response.data.title;
    let cover = &response.data.cover;
    let authors = &response.data.authors;

    println!("title = {}", title);
    println!("description = {}", description);
    println!("cover = {}", cover);
    println!("authors = {:?}", authors);
}

Dependencies

~14–31MB
~526K SLoC