zipatch-rs 1.5.0

Parser for FFXIV ZiPatch patch files
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "zipatch-rs"
version = "1.5.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 = "checkpoint_emission"
path = "tests/checkpoint_emission.rs"

[[test]]
name = "checkpoint_fsync_counts"
path = "tests/checkpoint_fsync_counts.rs"

[[test]]
name = "checkpoint_panics"
path = "tests/checkpoint_panics.rs"

[[test]]
name = "checkpoint_schema_version"
path = "tests/checkpoint_schema_version.rs"

[[test]]
name = "chunk"
path = "tests/chunk.rs"

[[test]]
name = "dry_run"
path = "tests/dry_run.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 = "manifest_checkpoint_emission"
path = "tests/manifest_checkpoint_emission.rs"

[[test]]
name = "plan_crc32_stability"
path = "tests/plan_crc32_stability.rs"

[[test]]
name = "real_patch"
path = "tests/real_patch.rs"

[[test]]
name = "regression_issue_25"
path = "tests/regression_issue_25.rs"

[[test]]
name = "resume_apply"
path = "tests/resume_apply.rs"

[[test]]
name = "resume_execute"
path = "tests/resume_execute.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"]

[[bench]]
name = "verify_parallel"
path = "benches/verify_parallel.rs"
harness = false

[dependencies.binrw]
version = "0.14"

[dependencies.crc32fast]
version = "1"

[dependencies.flate2]
version = "1"
default-features = false

[dependencies.rayon]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.sha1]
version = "0.11"

[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)"]