[package]
edition = "2024"
rust-version = "1.85"
name = "zipatch-rs"
version = "1.2.0"
build = false
exclude = [
"docs/",
"fuzz/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser for FFXIV ZiPatch patch files"
readme = "README.md"
keywords = [
"ffxiv",
"zipatch",
"patch",
"parser",
"binary",
]
categories = [
"parser-implementations",
"game-development",
]
license = "MIT"
repository = "https://github.com/reh3502/zipatch-rs"
[features]
default = ["rust_backend"]
rust_backend = ["flate2/rust_backend"]
serde = ["dep:serde"]
test-utils = []
zlib-ng = ["flate2/zlib-ng"]
zlib-rs = ["flate2/zlib-rs"]
[lib]
name = "zipatch_rs"
path = "src/lib.rs"
[[example]]
name = "apply_to_dir"
path = "examples/apply_to_dir.rs"
[[example]]
name = "in_memory_demo"
path = "examples/in_memory_demo.rs"
[[example]]
name = "inspect_sqpk"
path = "examples/inspect_sqpk.rs"
[[example]]
name = "parse_summary"
path = "examples/parse_summary.rs"
[[test]]
name = "apply"
path = "tests/apply.rs"
[[test]]
name = "chunk"
path = "tests/chunk.rs"
[[test]]
name = "index_apply"
path = "tests/index_apply.rs"
[[test]]
name = "index_apply_equivalence"
path = "tests/index_apply_equivalence.rs"
[[test]]
name = "index_builder"
path = "tests/index_builder.rs"
[[test]]
name = "index_chain"
path = "tests/index_chain.rs"
[[test]]
name = "index_plan"
path = "tests/index_plan.rs"
[[test]]
name = "index_region_map"
path = "tests/index_region_map.rs"
[[test]]
name = "index_serde"
path = "tests/index_serde.rs"
[[test]]
name = "index_source"
path = "tests/index_source.rs"
[[test]]
name = "index_verify"
path = "tests/index_verify.rs"
[[test]]
name = "real_patch"
path = "tests/real_patch.rs"
[[test]]
name = "regression_issue_25"
path = "tests/regression_issue_25.rs"
[[bench]]
name = "decompress"
path = "benches/decompress.rs"
harness = false
required-features = ["test-utils"]
[[bench]]
name = "end_to_end"
path = "benches/end_to_end.rs"
harness = false
required-features = ["test-utils"]
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
required-features = ["test-utils"]
[dependencies.binrw]
version = "0.14"
[dependencies.crc32fast]
version = "1"
[dependencies.flate2]
version = "1"
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.bincode]
version = "2"
features = ["serde"]
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
missing_errors_doc = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]