mal-rs
The purpose of this library is to provide high-level access to the MyAnimeList API.
At the time of writing, all features of the API are implemented, which include:
- Adding, updating, removing, and reading entries from a user's anime and manga list
- Searching for anime and manga by name
- Getting misc. info and statistics from a user's anime and manga list
- Verifying user credentials
Usage
By default, the library builds with support to work with both anime and manga.
If you need to search for / perform operations on both the user's anime and manga list, you can simply add mal
as a dependency to your Cargo.toml
file:
[]
= "0.8"
If you only need to work with just one type of list, you should use the following feature gates to reduce the final binary size and compilation time:
If you only need to search for anime / work with anime on a user's list, use the anime
feature:
[]
= "0.8"
= false
= ["anime"]
If you only need to search for manga / work with manga on a user's list, use the manga
feature:
[]
= "0.8"
= false
= ["manga"]
Example
The following will update an existing anime on a user's list:
extern crate mal;
use MAL;
use Status;
For more examples, see the docs on docs.rs.