irelia

Crates.ioirelia
lib.rsirelia
version0.11.0
created_at2023-01-27 13:59:04.005146+00
updated_at2025-07-16 13:47:54.767209+00
descriptionA Rust wrapper around the native LoL APIs
homepagehttps://github.com/AlsoSylv/Irelia
repositoryhttps://github.com/AlsoSylv/Irelia
max_upload_size
id769681
size1,329,594
Sylv (AlsoSylv)

documentation

https://docs.rs/irelia

README

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

Commit count: 227

cargo fmt