ChartLyrics
Rust bindings for the ChartLyrics API.
Features
- Get lyrics by song and artist (
search_lyric_direct)
Crate Features
- Async (default; using the
async feature)
- Blocking (using the
blocking feature)
Example
use chartlyrics::Client;
#[tokio::main]
async fn main() {
let client = Client::new().await.unwrap();
let result = client.search_lyric_direct("Numb", "Linkin Park").await.unwrap();
println!("{}", result.Lyric); }
use chartlyrics::BlockingClient;
#[tokio::main]
async fn main() {
let client = BlockingClient::new().unwrap();
let result = client.search_lyric_direct("Numb", "Linkin Park").unwrap();
println!("{}", result.Lyric); }