#lastfm #web #api

lastfm-rs

A friendly Rust library for working with the Last.fm API

7 unstable releases (3 breaking)

0.5.0 Apr 4, 2021
0.4.2 Dec 12, 2020
0.3.3 Dec 8, 2020
0.3.2 Nov 22, 2020
0.2.2 Feb 18, 2020

#6 in #lastfm

Download history 5/week @ 2023-11-04 6/week @ 2023-11-11 6/week @ 2023-11-18 28/week @ 2023-11-25 43/week @ 2023-12-02 4/week @ 2023-12-09 17/week @ 2023-12-16 26/week @ 2023-12-23 11/week @ 2023-12-30 6/week @ 2024-01-06 12/week @ 2024-01-13 16/week @ 2024-01-20 28/week @ 2024-01-27 3/week @ 2024-02-03 51/week @ 2024-02-10 192/week @ 2024-02-17

274 downloads per month

MIT license

33KB
477 lines

lastfm-rs

A friendly Rust library for interacting with the Last.fm API endpoints.

Note on Synchronous / Blocking I/O support

As of version 0.3.x, the library is only compatible with async Rust. No support is available for synchronous code / blocking I/O, however version 0.2.x supports this. Please be advised however that 0.2.x of the library is no longer being updated with new features; only 0.3.x and later are being updated moving forward due to the lack of development horsepower.

Supported endpoints

These are the currently supported API endpoints by lastfm-rs. Only a few user endpoints are currently supported, however support for other endpoints will be considered and / or added later on.

Note: There are currently no plans to add support for the Scrobbling API, but it will be considered.

User

user.getRecentTracks - Gets a users' recent tracks.

user.getLovedTracks - Gets a users' loved tracks.

user.getTopArtists - Gets a users' top artists.

user.getUserInfo - Gets basic information about a given user.

Dependencies

~5–18MB
~267K SLoC