1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-10-01 08:44:05 +02:00

cargo updates

This commit is contained in:
Robin Appelman 2026-08-31 23:02:56 +02:00
commit 1a5960f7c4
10 changed files with 375 additions and 329 deletions

View file

@ -1,14 +1,13 @@
[package]
name = "tf-demo-parser"
description = "parser for tf2 demo files"
version = "0.7.0"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2021"
license = "MIT OR Apache-2.0"
edition = "2024"
rust-version = "1.94.0"
description = "parser for tf2 demo files"
repository = "https://codeberg.org/demostf/parser"
exclude = ["tests/fuzz", "test_data"]
license = "MIT OR Apache-2.0"
exclude = ["test_data", "tests/fuzz"]
default-run = "parse_demo"
rust-version = "1.75.0"
[lib]
name = "tf_demo_parser"
@ -45,54 +44,65 @@ path = "src/bin/strings.rs"
name = "direct_hits"
path = "src/bin/direct_hits.rs"
[[bench]]
harness = false
name = "parse"
[dependencies]
bitbuffer = { version = "0.11.3", features = ["serde"] }
num_enum = "0.7.2"
num-traits = "0.2.19"
enumflags2 = { version = "0.7.10", features = ["serde"] }
snap = "1.1.1"
serde = { version = "1.0.203", features = ["derive", "rc"] }
serde_json = "1.0.117"
serde_repr = "0.1.19"
thiserror = "2.0.4"
parse-display = "0.9.1"
main_error = "0.1.2"
jemallocator = { version = "0.5.4", optional = true }
better-panic = { version = "0.3.0", optional = true }
fnv = "1.0.7"
tracing = { version = "0.1.40", optional = true }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"], optional = true }
itertools = "0.14.0"
bitbuffer = { version = "0.11.3", features = ["serde"] }
const-fnv1a-hash = "1.1.0"
enumflags2 = { version = "0.7.12", features = ["serde"] }
fnv = "1.0.7"
itertools = "0.15.0"
jemallocator = { version = "0.5.4", optional = true }
main_error = "0.1.2"
num_enum = "0.7.6"
num-traits = "0.2.19"
parse-display = "0.11.0"
serde = { version = "1.0.229", features = ["derive", "rc"] }
serde_json = "1.0.151"
serde_repr = "0.1.21"
snap = "1.1.2"
thiserror = "2.0.20"
tracing = { version = "0.1.44", optional = true }
tracing-subscriber = { version = "0.3.23", features = ["env-filter"], optional = true }
# schema
schemars = { version = "1.0.4", optional = true }
schemars = { version = "1.2.2", optional = true }
Inflector = { version = "0.11", default-features = false, optional = true }
lazy_static = { version = "1", optional = true }
prettyplease = { version = "0.3", optional = true }
proc-macro2 = { version = "1", optional = true }
# codegen
quote = { version = "1", optional = true }
syn = { version = "2", features = ["full"], optional = true }
Inflector = { version = "0.11", default-features = false, optional = true }
proc-macro2 = { version = "1", optional = true }
syn = { version = "3", features = ["full"], optional = true }
tempfile = { version = "3", optional = true }
lazy_static = { version = "1", optional = true }
prettyplease = { version = "0.2", optional = true }
log = { version = "0.4.21", features = [] }
[features]
schema = ["schemars", "bitbuffer/schemars_1"]
trace = ["tracing", "tracing-subscriber"]
codegen = ["better-panic", "quote", "syn", "Inflector", "proc-macro2", "tempfile", "lazy_static", "prettyplease"]
write = []
log = { version = "0.4.34", features = [] }
[dev-dependencies]
pretty_assertions = "1.4.0"
iai-callgrind = "0.16.1"
insta = { version = "1.48.0", features = ["json"] }
pretty_assertions = "1.4.1"
test-case = "3.3.1"
iai-callgrind = "0.15.2"
insta = { version = "1.39.0", features = ["json"] }
[profile.release]
lto = "thin"
[features]
codegen = [
"Inflector",
"better-panic",
"lazy_static",
"prettyplease",
"proc-macro2",
"quote",
"syn",
"tempfile"
]
schema = ["bitbuffer/schemars_1", "schemars"]
trace = ["tracing", "tracing-subscriber"]
write = []
[profile.bench]
debug = true
@ -100,7 +110,5 @@ debug = true
[profile.dev]
opt-level = 2
[[bench]]
name = "parse"
harness = false
[profile.release]
lto = "thin"