32 releases (6 breaking)

0.7.3 Jul 9, 2024
0.7.0-alpha.1 May 11, 2024
0.5.5 Mar 30, 2024
0.4.1 Oct 6, 2023
0.2.0 Mar 15, 2023

#184 in Asynchronous

Download history 457/week @ 2024-03-29 39/week @ 2024-04-05 892/week @ 2024-04-12 433/week @ 2024-04-19 2/week @ 2024-04-26 72/week @ 2024-05-10 10/week @ 2024-05-17 1/week @ 2024-05-24 88/week @ 2024-06-07 6/week @ 2024-06-14 462/week @ 2024-06-28 178/week @ 2024-07-05 23/week @ 2024-07-12

663 downloads per month

MIT license

1MB
4K SLoC

Irelia

Crates.io Total Downloads GitHub Repo stars Crates.io Version docs.rs

Irelia is a wrapper for the local https APIs provided by riot games for LoL


[dependencies]
irelia = "0.7"

Cargo Features


This crate is designed with modularity in mind, and as such API support has been split into different cargo features.

By default, everything but the replay feature is enabled

  • ["full"] - enables support for all APIs
  • ["ws"] - enables support for the LCU websocket
  • ["in_game"] - enables support for the native in game API
  • ["batched"] - enabled the batched request system
  • ["replay"] - enables the replay API interface

Making a request to the LCU


Making a request to the LCU with irelia is simple

use irelia::{Error, RequestClient, rest::LcuClient};
use serde_json::Value;

#[tokio::main]
async fn main() {
    let request_client = RequestClient::new();
    let lcu_client = LcuClient::new(false).unwrap();
    
    let json: Result<Option<Value>, Error> = lcu_client.get("/endpoint", &request_client).await;
}

Examples


Up-to-date examples can always be found here

Dependencies

~8–37MB
~661K SLoC