Crates.io | wt-battle-report |
lib.rs | wt-battle-report |
version | 0.1.1 |
source | src |
created_at | 2023-09-11 13:18:16.579027 |
updated_at | 2023-09-11 14:49:23.439788 |
description | A parser for War Thunder battle reports |
homepage | |
repository | https://github.com/chronophylos/wt-battle-report |
max_upload_size | |
id | 969583 |
size | 50,434 |
Recently Gaijin changed how battle reports are displayed in your message log. Doing that, they added the ability to copy a battle report to your clipboard. This library can deserialize that battle report using serde.
Add the following to your Cargo.toml
:
[dependencies]
wt-battle-report = "0.1"
Then you can use the library like this:
fn main() {
let report = "Battle report text";
let battle_report = wt_battle_report::from_str(report).unwrap();
println!("{:#?}", battle_report);
}