No description
Find a file
Felix Alexander Meuer 40b807eb17 Merge branch 'experimental' into 'dev'
refactor: replaced vectors into hashmaps using gameStateId as key

See merge request tks85/mtg-parser!5
2024-03-08 23:32:03 +00:00
data Dumped exemplary log files and misc files - keep or delete them as appropriate 2023-09-11 12:41:22 +02:00
debug_data refactor: replaced vectors into hashmaps using gameStateId as key 2024-03-08 23:32:03 +00:00
misc/py-split-log refactor: deleted python scriptlet and moved it to gitlabs snippets 2023-09-11 14:51:21 +02:00
src refactor: replaced vectors into hashmaps using gameStateId as key 2024-03-08 23:32:03 +00:00
.gitattributes feat: activated git lfs for .log and .zip files 2023-09-11 15:28:31 +02:00
.gitignore refactor: replaced vectors into hashmaps using gameStateId as key 2024-03-08 23:32:03 +00:00
.gitlab-ci.yml feat: added gitlab ci file 2023-09-09 15:20:45 +02:00
build.rs Lalrpop experimental 2023-09-13 11:46:18 +00:00
Cargo.lock refactor: replaced vectors into hashmaps using gameStateId as key 2024-03-08 23:32:03 +00:00
Cargo.toml refactor: replaced vectors into hashmaps using gameStateId as key 2024-03-08 23:32:03 +00:00
README.md docs: update Readme to include instruction on Rust plugin 2023-09-11 19:03:04 +02:00

mtg-parser

The mtg-parser parses extended game logs from Wizard's MtG client and is able to extract game events along with their timestamp and additional properties.

Project Status

pipeline status Latest Release

Folder Structure

So far, the project is mostly barebone. Code is expected to be found in src, while log data might be read from and written to data. Other files and relevant code snippets (with proper attribution) could be stored under misc.

Setup

Prerequisites

Everything can be installed with rustup:

# Update rustup's information.
rustup update

# Install the stable Rust toolchain (if not already present).
rustup toolchain add stable

# Add rustfmt.
rustup component add rustfmt

# Add clippy.
rustup component add clippy

Execution and Development

When using Jetbrain IDEs, install the Rust plugin or a similar plugin in your IDE of choice.

  • Check Code for errors using Clippy: cargo clippy

    • if there are multiple features in the project, use cargo clippy --all-features
  • Automatically format your code using fmt: cargo fmt

  • Run project: cargo run

  • Compile release version of project: cargo build --release

    • Binary will be saved to target/release
  • Run tests: cargo test --all-features