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.
time
- Specify this to use Chrono for the timestamps instead of integersDependencies:
toml
[dependencies]
mangadex-api = "0.1"
```rust use mangadexapi::v2::MangaDexV2; use mangadexapi::MangaDexClient;
async fn main() { use mangadexapi::v2::{responses::ResponseType, MangaDexV2}; use mangadexapi::MangaDexClient;
let mangadex_client = MangaDexV2::default();
let manga = mangadex_client.manga(1).send().await.unwrap().ok().unwrap();
assert_eq!(manga.data.id, 1);
} ```
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.
Licensed under either of
at your option.
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.