Crates.io | irelia |
lib.rs | irelia |
version | 0.8.1 |
source | src |
created_at | 2023-01-27 13:59:04.005146 |
updated_at | 2024-09-08 23:20:09.544298 |
description | A Rust wrapper around the native LoL APIs |
homepage | https://github.com/AlsoSylv/Irelia |
repository | https://github.com/AlsoSylv/Irelia |
max_upload_size | |
id | 769681 |
size | 1,267,473 |
Irelia is a wrapper for the local https APIs provided by riot games for LoL
[dependencies]
irelia = "0.7"
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 interfaceMaking 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;
}
Up-to-date examples can always be found here