[package]
edition = "2024"
rust-version = "1.91.0"
name = "tf-demo-parser"
version = "0.7.0"
build = false
exclude = [
"test_data",
"tests/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "parse_demo"
description = "parser for tf2 demo files"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/demostf/parser"
[features]
codegen = [
"Inflector",
"better-panic",
"lazy_static",
"prettyplease",
"proc-macro2",
"quote",
"syn",
"tempfile",
]
schema = [
"bitbuffer/schemars_1",
"schemars",
]
trace = [
"tracing",
"tracing-subscriber",
]
write = []
[lib]
name = "tf_demo_parser"
path = "src/lib.rs"
[[bin]]
name = "codegen"
path = "src/bin/codegen.rs"
required-features = ["codegen"]
[[bin]]
name = "direct_hits"
path = "src/bin/direct_hits.rs"
[[bin]]
name = "gamestate"
path = "src/bin/gamestate.rs"
[[bin]]
name = "parse_demo"
path = "src/bin/main.rs"
[[bin]]
name = "reencode_demo"
path = "src/bin/reencode.rs"
required-features = ["write"]
[[bin]]
name = "schema"
path = "src/bin/schema.rs"
required-features = ["schema"]
[[bin]]
name = "strings"
path = "src/bin/strings.rs"
[[example]]
name = "allprops"
path = "examples/allprops.rs"
[[test]]
name = "entity"
path = "tests/entity.rs"
[[test]]
name = "message_reencode"
path = "tests/message_reencode.rs"
[[test]]
name = "reencode"
path = "tests/reencode.rs"
[[test]]
name = "sendprops"
path = "tests/sendprops.rs"
[[test]]
name = "stringtable"
path = "tests/stringtable.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
[dependencies.Inflector]
version = "0.11"
optional = true
default-features = false
[dependencies.better-panic]
version = "0.3.0"
optional = true
[dependencies.bitbuffer]
version = "0.11.3"
features = ["serde"]
[dependencies.const-fnv1a-hash]
version = "1.1.0"
[dependencies.enumflags2]
version = "0.7.12"
features = ["serde"]
[dependencies.fnv]
version = "1.0.7"
[dependencies.itertools]
version = "0.15.0"
[dependencies.jemallocator]
version = "0.5.4"
optional = true
[dependencies.lazy_static]
version = "1"
optional = true
[dependencies.log]
version = "0.4.34"
features = []
[dependencies.main_error]
version = "0.1.2"
[dependencies.num-traits]
version = "0.2.19"
[dependencies.num_enum]
version = "0.7.6"
[dependencies.parse-display]
version = "0.11.0"
[dependencies.prettyplease]
version = "0.3"
optional = true
[dependencies.proc-macro2]
version = "1"
optional = true
[dependencies.quote]
version = "1"
optional = true
[dependencies.schemars]
version = "1.2.2"
optional = true
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.serde_repr]
version = "0.1.21"
[dependencies.snap]
version = "1.1.2"
[dependencies.syn]
version = "3"
features = ["full"]
optional = true
[dependencies.tempfile]
version = "3"
optional = true
[dependencies.thiserror]
version = "2.0.20"
[dependencies.tracing]
version = "0.1.44"
optional = true
[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]
optional = true
[dev-dependencies.gungraun]
version = "0.19.4"
[dev-dependencies.insta]
version = "1.48.0"
features = ["json"]
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.test-case]
version = "3.3.1"
[profile.bench]
debug = 2
[profile.dev]
opt-level = 2
[profile.release]
lto = "thin"