mangadex-api 0.1.0

Wrapper around the MangaDex API
Documentation

MangaDex API

Rust wrapper for the MangaDex API. This also includes some conveniences that are not provided from the API directly such as logging in.

Warning: This is still in the early development stage. Some breaking API changes may occur as the project matures. Consequently, this code is not yet ready for use in production.

Table of Contents

Requirements

Back to top

Features

Back to top

Optional Features

Back to top

  • time - Specify this to use Chrono for the timestamps instead of integers

Example

Back to top

Dependencies:

[dependencies]
mangadex-api = "0.1"
use mangadex_api::v2::MangaDexV2;
use mangadex_api::MangaDexClient;

#[tokio::main]
async fn main() {
    use mangadex_api::v2::{responses::ResponseType, MangaDexV2};
    use mangadex_api::MangaDexClient;

    let mangadex_client = MangaDexV2::default();

    let manga = mangadex_client.manga(1).send().await.unwrap().ok().unwrap();
    assert_eq!(manga.data.id, 1);
}

Running Examples

Back to top

The examples can be run with the following:

cargo run --example [example_name]

More details about the examples can be found in the examples README file.

License

Back to top

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.