Crates.io | evtclib |
lib.rs | evtclib |
version | 0.7.3 |
source | src |
created_at | 2020-05-02 13:22:14.524067 |
updated_at | 2022-05-11 21:08:59.908354 |
description | An evtc parsing library |
homepage | |
repository | https://gitlab.com/dunj3/evtclib |
max_upload_size | |
id | 236570 |
size | 251,773 |
evtclib
is a Rust library that allows you to parse .evtc
files, as
generated by the arcdps addon for the
Guild Wars 2 video game.
Features:
.evtc.zip
or .zevtc
).serde
feature).evtclib
is currently in beta-stage. Not all evtc events are supported, and
the API is not yet set in stone.
use std::fs::File;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Parse a log
let log = evtclib::process_file("Skorvald/20200421-183243.evtc")?;
// Do work on the log
for player in log.players() {
println!("Player {} participated!", player.account_name());
}
Ok(())
}
You can also check out examples/loginfo.rs
or run it on a log file:
cargo run --example=loginfo -- path/to/log.zevtc
This project is licensed under the MIT license (LICENSE
or
https://opensource.org/licenses/MIT).