Releases: Acizza/mal-rs
v0.8.0
v0.7.0
Changelog:
-
Added missing series types that would cause parsing to fail on some people's anime list.
-
Series searching has been moved to the appropriate list type. For example, to search for an anime and manga series:
let mal = MAL::new("username", "password");
let found_anime = mal.anime_list().search_for("Toradora").unwrap();
let found_manga = mal.manga_list().search_for("Bleach").unwrap();
-
Removed
AnimeStatus
andMangaStatus
enums and merged them into a newStatus
enum to represent both list types.AnimeStatus::Watching
/MangaStatus::Reading
now corresponds toStatus::WatchingOrReading
, andAnimeStatus::PlanToWatch
/MangaStatus::PlanToRead
now corresponds toStatus::PlanToWatchOrRead
. -
The type of the
client
field in theMAL
struct is nowCow<reqwest::Client>
, so an existingreqwest::Client
can be used withMAL::with_client
without giving up ownership. -
The
Debug
impl forMAL
no longer prints the user's password. -
Replaced the
MALError::Internal
variant withMALError::ListError
and expanded theListError
type. -
Slightly optimized list parsing.
-
Updated
minidom
to v0.8.
v0.6.0
Changelog:
- Completely overhauled error handling. All public functions now return a
MALError
enum that contains aRequest
andInternal
variant that are used to represent errors sending a request to MAL and internal parsing errors, respectively. - Moved
AnimeInfo
struct tolist::anime
module - Moved
MangaInfo
struct tolist::manga
module - Renamed the
anime-list
feature toanime
andmanga-list
feature tomanga
since all functionality related to both has been moved to their respectivelist
modules - Added
series_type
field toAnimeInfo
/MangaInfo
structs - Added
airing_status
field toAnimeInfo
struct - Added
publishing_status
field toMangaInfo
struct - Moved
SeriesInfo
trait tolist
module
v0.5.0
Changelog:
-
Converted
List
trait to genericList
struct, to reduce code duplication. -
Added
List::add_id
andList::update_id
methods. -
The
AnimeEntry
andMangaEntry
types now have a field namedvalues
that contains all of the data that can be set / updated on MyAnimeList. (this change was made to avoid duplicating code for theList::add_id
andList::update_id
methods) -
User info is now parsed when reading entries from a user's list and reading from a list now returns the
ListEntries
type. -
Renamed
List::read_entries
toList::read
since it parses user info now. -
Implemented
Default
trait forAnimeValues
andMangaValues
structs. -
Implemented
Display
trait forWatchStatus
andReadStatus
enums.
v0.4.1
v0.4.0
Changelog:
- Added
last_updated_time
,image_url
, andsynonym
fields toAnimeInfo
andMangaInfo
structs. WatchStatus::from_i32
andReadStatus::from_i32
now returnOption
rather thanResult
.- Fixed the status of changed fields not being reset when adding an anime / manga to a user's list.
- Refactored the requests module and fixed some inconsistencies with it.