2 unstable releases

0.2.0 Oct 25, 2024
0.1.0 Oct 15, 2024

#646 in Web programming

Download history 121/week @ 2024-10-09 61/week @ 2024-10-16 119/week @ 2024-10-23 11/week @ 2024-10-30 14/week @ 2024-11-06 1/week @ 2024-11-13

146 downloads per month

MIT license

67KB
1K SLoC

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(())
}

Dependencies

~5–18MB
~256K SLoC