readme+cargo meta

This commit is contained in:
Robin Appelman 2021-08-08 15:55:01 +02:00
commit a9302218cb
3 changed files with 17 additions and 1 deletions

View file

@ -1,7 +1,11 @@
[package]
name = "tf-log-parser"
version = "0.1.0"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018"
license = "MIT OR Apache-2.0"
exclude = [ "test_data" ]
repository = "https://github.com/icewind1991/tf-log-parser"
[dependencies]
steamid-ng = "1"

13
README.md Normal file
View file

@ -0,0 +1,13 @@
# tf-log-parser
TF2 log parser with a focus on speed and flexibility.
## CLI usage
```bash
tf-log-parser path/to/log.log
```
## Custom statistics
By implementing the `EventHandler` trait you can run custom analysis, see the [examples](./examples) for details.

View file

@ -32,7 +32,6 @@ impl EventHandler for HighestDamageHandler {
}) = event
{
let damage = damage.get();
// note that we leave the name empty for now to prevent needles cloning
match &mut self.current {
Some((_, current_damage)) if damage > *current_damage => {
self.current = Some((subject, damage))