Releases: MaxOhn/rosu
Releases · MaxOhn/rosu
v0.6.0
-
Breaking
- Renamed the
GameMode
variants toOsu
,Taiko
,Catch
, andMania
- Replaced the
chrono
dependency withtime
. All fields of typechrono::DateTime<chrono::offset::Utc>
are now of typetime::OffsetDateTime
- Removed the
cache
feature and all types & methods that came with it. - Renamed the struct
APIError
toApiError
- The given api key must now implement
Into<Box<str>>
instead ofInto<String>
OsuBuilder
no longer implementsDefault
- Renamed the
-
Dependencies
- Bumped
prometheus
from 0.11 to 0.13 - Added
thiserror
- Bumped
v0.5.0
v0.4.0
Complete rewrite of the backend and interface of the osu client.
Client interface:
The client now has methods to request data specifically.
(UserIdentification
implements From
for u32
, String
, &str
, and &String
)
.user(user: impl Into<UserIdentification>)
to get anOption<User>
.beatmap()
to get anOption<Beatmap>
.beatmaps()
to get aVec<Beatmap>
.osu_match(match_id: u32)
to get aMatch
.score(map_id: u32)
to get anOption<Score>
.scores(map_id: u32)
to get aVec<Score>
.top_scores(user: impl Into<UserIdentification>)
to get aVec<Score>
.recent_scores(user: impl Into<UserIdentification>)
to get aVec<Score>
Data types:
- Added an OsuBuilder struct
OsuError
is now more idiomatically implement through its source errors. Reading anOsuError
should now be done by unwinding its.source()
. (See README)Beatmap
's fieldfile_md5
is now anOption<String>
Grade
now implementsFromStr
instead ofTryFrom<&str>
GameMods
now implementsFromStr
instead ofTryFrom<&str>
GameMode
's implementation ofDisplay
now results inosu
,taiko
,fruits
, andmania
.
General changes
models
module renamed tomodel
Dependencies:
- Remove governor, use custom ratelimiter instead
- Add tokio for the custom ratelimiter
v0.3.3
v0.3.2
v0.3.0
v0.2.4
v0.2.3
serialize
feature flag to enhance deserializing and enable serializing of model structsmetrics
feature flag to count requests and provideOsu::metrics
method- Fixed missing mode specification when retrieving the leaderboard of a beatmap
- Simplified String/&str provision as parameters (
Into<String>
andAsRef<str>
)