[package]
edition = "2021"
rust-version = "1.93.0"
name = "manasight-parser"
version = "0.5.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MTG Arena log file parser — reads Player.log and emits typed game events"
readme = "README.md"
keywords = [
"mtg-arena",
"parser",
"log",
"magic-the-gathering",
]
categories = [
"parser-implementations",
"games",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/manasight/manasight-parser"
[features]
brace_depth_flush = []
default = [
"brace_depth_flush",
"tailer",
]
tailer = [
"dep:tokio",
"dep:known-folders",
]
wasm = [
"dep:wasm-bindgen",
"dep:serde-wasm-bindgen",
"brace_depth_flush",
]
[lib]
name = "manasight_parser"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "scrub"
path = "src/bin/scrub.rs"
required-features = ["tailer"]
[[test]]
name = "corpus_flush_timing"
path = "tests/corpus_flush_timing.rs"
[[test]]
name = "corpus_parse_timing"
path = "tests/corpus_parse_timing.rs"
[[test]]
name = "corpus_prev_game_state_id"
path = "tests/corpus_prev_game_state_id.rs"
[[test]]
name = "deck_submission_integration"
path = "tests/deck_submission_integration.rs"
[[test]]
name = "game_over_annotations_integration"
path = "tests/game_over_annotations_integration.rs"
[[test]]
name = "parse_whole_log_integration"
path = "tests/parse_whole_log_integration.rs"
[[test]]
name = "seat_attribution_integration"
path = "tests/seat_attribution_integration.rs"
[[test]]
name = "smoke_parsers"
path = "tests/smoke_parsers.rs"
[[test]]
name = "smoke_ratchet"
path = "tests/smoke_ratchet.rs"
[[test]]
name = "smoke_router"
path = "tests/smoke_router.rs"
[[test]]
name = "smoke_stream"
path = "tests/smoke_stream.rs"
[[test]]
name = "stream_integration"
path = "tests/stream_integration.rs"
[[test]]
name = "truncation_integration"
path = "tests/truncation_integration.rs"
[[test]]
name = "wasm_smoke"
path = "tests/wasm_smoke.rs"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.flate2]
version = "1"
[dependencies.log]
version = "0.4"
[dependencies.regex]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"fs",
"io-util",
"time",
"macros",
]
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.js-sys]
version = "0.3"
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.proptest]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"
[target.'cfg(target_os = "windows")'.dependencies.known-folders]
version = "1"
optional = true
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1