12 releases
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 |
#102 in #async-client
49 downloads per month
155KB
3.5K
SLoC
dmzj
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–28MB
~466K SLoC