#api-wrapper #api-bindings #api #wanikani

wanisabi

Rust binding for the wanikani API: a fork of wanikani-rs

5 releases

0.1.6 Feb 14, 2024
0.1.5 Feb 12, 2024
0.1.4 Feb 9, 2024
0.1.2 Jan 31, 2024
0.1.1 Jan 31, 2024

#96 in #api-wrapper

38 downloads per month

MIT license

41KB
1K SLoC

Continuous Integration MIT License Crate version

Wanisabi

An API wrapper for the wanikani API written in rust.

Usage/Examples

#[tokio::main]
async fn main() -> Result<(), wanisabi::Error> {
    let client = Client::new("<WANIKANI_API_KEY>");
    let params = vec![
        AssignmentsFilter::ImmediatelyAvailableForLessons,
    ];
    let assignments = client.get_assignments_filtered(params).await?;
}

Note that Client::default() attempts to retreive the API key from the WANIKANI_API_KEY environment variable.

Dependencies

~12–25MB
~366K SLoC