36 releases (8 breaking)

new 0.9.1 Jan 11, 2025
0.9.0 Dec 29, 2024
0.8.1 Sep 8, 2024
0.7.3 Jul 9, 2024
0.2.0 Mar 15, 2023

#181 in Asynchronous

Download history 28/week @ 2024-09-23 10/week @ 2024-09-30 1/week @ 2024-10-14 139/week @ 2024-12-02 301/week @ 2024-12-09 51/week @ 2024-12-16 170/week @ 2024-12-23 100/week @ 2024-12-30 155/week @ 2025-01-06

492 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.9"

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 avaiable in the client by default (enabled by default)
  • ["ws"] - enables support for the LCU websocket
  • ["in_game"] - enables support for the native in game API
  • ["replay"] - enables the replay API interface (disabled by default)

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 lcu_client = irelia::rest::LcuClient::connect().unwrap();

    let current_summoner: Value = lcu_client
        .get("/lol-summoner/v1/current-summoner")
        .await
        .unwrap();

    println!("{current_summoner}");
}

Up-to-date examples can always be found here

Dependencies

~8–39MB
~701K SLoC