lastfm 0.10.0

An async client to fetch your Last.fm listening history or the track you are currently playing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use lastfm::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::builder()
        .api_key("some-api-key")
        .username("loige")
        .reqwest_client(reqwest::Client::new())
        .base_url("http://localhost:8080".parse().unwrap())
        .build();

    // do something with client...
    dbg!(client);

    Ok(())
}