No description
- Rust 100%
refactor: replaced vectors into hashmaps using gameStateId as key See merge request tks85/mtg-parser!5 |
||
|---|---|---|
| data | ||
| debug_data | ||
| misc/py-split-log | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
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
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
- if there are multiple features in the project, use
-
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