Crates.io | soniq |
lib.rs | soniq |
version | 0.0.2 |
created_at | 2025-06-28 15:24:53.545005+00 |
updated_at | 2025-07-11 14:19:43.192464+00 |
description | A Rust library to interact with the Last.fm API. |
homepage | https://github.com/CleeSim/soniq |
repository | https://github.com/CleeSim/soniq.git |
max_upload_size | |
id | 1729926 |
size | 69,846 |
A modern and lightweight Rust client for the Last.fm API. Fully asynchronous and built with Tokio, Soniq provides a simple and efficient way to interact with Last.fm's extensive music data.
cargo add soniq
Or add Soniq to your Cargo.toml
file directly:
[dependencies]
soniq = "*.*.*"
use soniq::client::Client;
#[tokio::main]
async fn main() -> Result<(), Error> {
let api_key = "YOUR_LASTFM_API_KEY";
let client = Client::builder(api_key.clone())
.api_secret("YOUR_LASTFM_API_SECRET") // optional for signed calls
.timeout(std::time::Duration::from_secs(5))
.build()?;
let user_info = client
.user()
.get_info("unb_")
.await?;
println!("User: {:?}", user_info);
Ok(())
}
The library is still in early development. Here are some of the planned features and improvements:
Contributions, issues, and feature requests are welcome!
This project is licensed under the MIT License. See LICENSE for details.