wt-battle-report

Crates.iowt-battle-report
lib.rswt-battle-report
version0.1.1
sourcesrc
created_at2023-09-11 13:18:16.579027
updated_at2023-09-11 14:49:23.439788
descriptionA parser for War Thunder battle reports
homepage
repositoryhttps://github.com/chronophylos/wt-battle-report
max_upload_size
id969583
size50,434
Nikolai Zimmermann (Chronophylos)

documentation

https://docs.rs/wt-battle-report

README

War Thunder Battle Report Parser

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.

Usage

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);
}
Commit count: 27

cargo fmt