Crates.io | narwhalol |
lib.rs | narwhalol |
version | 0.2.3 |
source | src |
created_at | 2019-08-07 15:48:10.494457 |
updated_at | 2020-07-05 18:31:08.730383 |
description | Easy to use async/sync League of legends API Wrapper |
homepage | |
repository | https://github.com/Drevoed/narwhalol |
max_upload_size | |
id | 154820 |
size | 100,746 |
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.
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);
}