| Crates.io | laftel-rs |
| lib.rs | laftel-rs |
| version | 0.0.2 |
| created_at | 2026-01-19 15:13:10.760616+00 |
| updated_at | 2026-01-21 17:32:58.259533+00 |
| description | A Rust wrapper for the Laftel.net API |
| homepage | |
| repository | https://github.com/KakouLabs/Laftel-rs |
| max_upload_size | |
| id | 2054789 |
| size | 96,960 |
Unofficial Rust Laftel.net API Wrapper
Add this to your Cargo.toml:
[dependencies]
laftel-rs = "0.1.0"
tokio = { version = "1.0", features = ["full"] } # For async support
use laftel_rs::LaftelClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = LaftelClient::new()?;
// Search for anime
let results = client.search_anime("전생슬").await?;
if let Some(first) = results.first() {
println!("Found: {} ({})", first.name, first.url());
// Get detailed information
let info = client.get_anime_info(first.id).await?;
println!("Summary: {}", info.content);
}
Ok(())
}
use laftel_rs::blocking::LaftelBlockingClient;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = LaftelBlockingClient::new()?;
let results = client.search_anime("전생슬")?;
for result in results {
println!("- {}", result.name);
}
Ok(())
}
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Inspired by the original Python implementation.