| Crates.io | dmzj |
| lib.rs | dmzj |
| version | 0.3.0 |
| created_at | 2023-10-18 11:25:11.515535+00 |
| updated_at | 2024-05-04 13:41:00.593865+00 |
| description | dmzj api bindings |
| homepage | https://github.com/cijiugechu/dmzj |
| repository | https://github.com/cijiugechu/dmzj |
| max_upload_size | |
| id | 1006642 |
| size | 93,791 |
dmzjAn async dmzj client for Rust.
Mostly taken from tachiyomi extensions & flutter_dmzj.
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);
}