kitsu.rs
An unofficial Rust library acting as a wrapper around the Kitsu API, offering implementations for both asynchronous hyper (v0.11) and synchronous reqwest (v0.8).
note: The library supports retrieval from the API, but does not currently support authenticated requests.
Compile features
- hyper-support: Compiles with
hyper
support - reqwest-support: Compliles with
reqwest
support (default)
Installation
Add the following to your Cargo.toml
file:
[]
= "0.1"
To enable both hyper
and reqwest
support:
[]
= "0.1"
= ["hyper-support", "reqwest-support"]
To enable hyper
but not reqwest
support:
[]
= "0.1"
= false
= ["hyper-support"]
Examples
Using reqwest, search for an anime using a string taken from user input:
extern crate kitsu;
extern crate reqwest;
use KitsuReqwestRequester;
use Client;
use ;
For more examples, refer to the examples folder.
License
ISC. View the full license here.