Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cijiugechu/dmzj
An async dmzj client for Rust. 动漫之家 api
https://github.com/cijiugechu/dmzj
api client dmzj protobuf rust
Last synced: 8 days ago
JSON representation
An async dmzj client for Rust. 动漫之家 api
- Host: GitHub
- URL: https://github.com/cijiugechu/dmzj
- Owner: cijiugechu
- License: apache-2.0
- Created: 2023-10-15T09:41:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-04T13:33:13.000Z (6 months ago)
- Last Synced: 2024-10-19T14:02:36.446Z (20 days ago)
- Topics: api, client, dmzj, protobuf, rust
- Language: Rust
- Homepage:
- Size: 316 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `dmzj`
[![Cargo](https://img.shields.io/crates/v/dmzj.svg)](https://crates.io/crates/dmzj) [![Documentation](https://docs.rs/dmzj/badge.svg)](https://docs.rs/dmzj)
An async dmzj client for Rust.
Mostly taken from [tachiyomi extensions](https://github.com/tachiyomiorg/tachiyomi-extensions/tree/master/src/zh/dmzj) & [flutter_dmzj](https://github.com/xiaoyaocz/flutter_dmzj).
## Example
```rust
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);
}
```For more examples, please check out [examples](/crates/dmzj/examples/).