Drevoed / narwhalol

Idiomatic Rust League of Legends DDragon and API wrapper
MIT License
8 stars 0 forks source link

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

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