nyaa-si

Crates.ionyaa-si
lib.rsnyaa-si
version0.2.2
sourcesrc
created_at2024-02-26 10:50:31.404425
updated_at2024-10-19 03:52:40.241448
descriptionAn async Nyaa client for Rust
homepage
repositoryhttps://github.com/cijiugechu/nyaa-si
max_upload_size
id1153363
size90,654
阿良仔 (cijiugechu)

documentation

https://docs.rs/nyaa-si

README

nyaa-si

Cargo Documentation

An async Nyaa client for Rust.

Usage

use nyaa_si::{Client, NyaaCategory, NyaaClient, QueryBuilder, Sort};

#[tokio::main]
async fn main() {
    let query = QueryBuilder::new()
        .search("tengoku")
        .sort(Sort::Downloads)
        .category(NyaaCategory::Anime)
        .build();

    let client = NyaaClient::new();
    let res = client.get(&query).await.unwrap();
    println!("{:#?}", res.get(0).unwrap());
}
Commit count: 16

cargo fmt