Skip to content

0.6.0

Compare
Choose a tag to compare
@lmammino lmammino released this 12 Sep 09:00
· 10 commits to main since this release

What's Changed

  • BREAKING CHANGE: use typed-builder to implement client builder by @lmammino in #5

Now the way to construct a client is:

use lastfm::Client;

let client = Client::builder()
  .api_key("YOUR_API_KEY")
  .username("YOUR_USERNAME")
  .build();

If you want to load your API key from env:

use lastfm::Client;

let client = Client::<String, &str>::from_env("YOUR_USERNAME");

Full Changelog: 0.5.0...0.6.0