Crates.io | league-of-crates |
lib.rs | league-of-crates |
version | 0.3.4 |
source | src |
created_at | 2023-08-11 14:36:12.945278 |
updated_at | 2023-08-20 17:00:20.286848 |
description | Beginner project for learning rust. Parses league of legends .json data from DataDragon into Rust |
homepage | |
repository | https://github.com/SneedSeedFeed/league-of-crates |
max_upload_size | |
id | 941974 |
size | 20,801 |
This is currently just a basic library to help parsing the binary data pulled by CDragon. In future I will be looking to expand this out a bit.
I'm a rust newbie and this is my starter learning project after finishing Rustlings. Hopefully it will help me achieve world domination, full oxidation some reasonable fluency in Rust and help others along the way with anything League of Legends related like maybe a calculator site or smthn idk.
// You should be handling these errors, or not I'm not your Dad
let champ_dir = ChampDir::from_cdragon().await?;
let best_champ_in_the_game = champ_dir.get_by_key(516).unwrap();
println!("{}", best_champ_in_the_game.name);
Output: Ornn
I will probably maybe potentially add proper docs in the future but while it's so shrimple I think I can get away with just some example code.
Current version repo: https://github.com/SneedSeedFeed/league-of-crates/tree/0.2.0-rework
Todo:
0.3.4 - Added keywords and repo to the cargo.toml, in case you want to see my horrendous code.
0.3.3 - Pinned Serde version to 1.0.171, because of the precompiled binaries fiasco. Won't matter most likely.
0.3.2 - Derived Clone and PartialEq because I forgor that rust won't allow you to do that if you use this crate
0.3.1 - Updated readme
0.3.0
0.2.0
0.1.1 - Added readme
0.1.0 - Initial release