narwhalol

Crates.ionarwhalol
lib.rsnarwhalol
version0.2.3
sourcesrc
created_at2019-08-07 15:48:10.494457
updated_at2020-07-05 18:31:08.730383
descriptionEasy to use async/sync League of legends API Wrapper
homepage
repositoryhttps://github.com/Drevoed/narwhalol
max_upload_size
id154820
size100,746
Kirill Mironov (Drevoed)

documentation

https://docs.rs/narwhalol

README

Narwhalol

Build Status Code Coverage License Latest Version Documentation

Narwhalol is a Fast and Type-safe wrapper of DDragon and League of Legends API.

It strives to provide the most comfortable and fast experience of getting useful data directly from Riot servers.

Zero cost abstractions and compile-time optimizations used in Rust is what makes this library so fast.

Advantages

  • Support of many std Traits allowing hands-free convertations between types
  • Clean and concise Error messages
  • Caching of identical requests
  • Is in development stage, issues and bugs will be fixed ASAP
  • Supports all mainstream runtimes with feature flags (smol, async-std, tokio)

Example

use narwhalol::LeagueClient;
use smol;

fn main() {
    let lapi = LeagueClient::new(Region::RU).unwrap();
    let sum = smol::run(async {
        lapi.get_summoner_by_name("Vetro").await.unwrap()
    });

    println!("got summoner: {:?}", &sum);
}
Commit count: 105

cargo fmt