irelia-cli 0.5.6

A Rust wrapper around the native LoL APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate irelia;
extern crate tokio;

#[tokio::main]
async fn main() {
    let request_client = irelia::RequestClient::new();
    let lcu_client = irelia::rest::LcuClient::new(false).unwrap();

    let value: serde_json::Value = lcu_client
        .get("Example", &request_client)
        .await
        .unwrap()
        .unwrap();

    let _value = &value["example_index"];
}