bgmtv

Crates.iobgmtv
lib.rsbgmtv
version0.2.0
sourcesrc
created_at2024-10-15 07:01:12.621915
updated_at2024-10-25 08:30:03.141814
descriptionAn API wrapper for bangumi.tv based on reqwest.
homepage
repositoryhttps://github.com/duskmoon314/bgmtv-rs
max_upload_size
id1409053
size67,965
Campbell He (duskmoon314)

documentation

README

bgmtv

bgmtv is an API wrapper for bangumi.tv based on reqwest.

Usage

use bgmtv::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = Client::builder()
        .user_agent("duskmoon/bgmtv/0.1.0 (https://github.com/duskmoon314/bgmtv-rs)")
        .build()?;

    let subject = client.get_subject(3559).await?;

    assert_eq!(subject.name, "とある魔術の禁書目録");

    Ok(())
}
Commit count: 12

cargo fmt