12 releases

new 0.3.0 May 4, 2024
0.2.2 Mar 7, 2024
0.2.1 Dec 20, 2023
0.2.0 Nov 29, 2023
0.1.7 Oct 23, 2023

#1537 in Network programming

Download history 2/week @ 2024-02-17 8/week @ 2024-02-24 116/week @ 2024-03-02 30/week @ 2024-03-09 4/week @ 2024-03-16 65/week @ 2024-03-30 13/week @ 2024-04-06

78 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–30MB
~492K SLoC