Skip to main content

Crate zipatch_rs

Crate zipatch_rs 

Source
Expand description

Parser and applier for FFXIV ZiPatch (.patch) binary files.

This crate is split into two layers that share types but are otherwise independent:

  • ParsingZiPatchReader is an iterator over Chunks read from any std::io::Read source. Nothing in the parser touches the filesystem.
  • Applying — the Apply trait writes a parsed chunk to disk through an ApplyContext, which holds the game install root, target platform, and internal file-handle cache.

Typical usage opens a patch file, constructs a context, and pipes chunks through ZiPatchReader::apply_to.

Re-exports§

pub use apply::Apply;
pub use apply::ApplyContext;
pub use chunk::Chunk;
pub use chunk::ZiPatchReader;
pub use error::ZiPatchError;

Modules§

apply
Filesystem application of parsed chunks (Apply, ApplyContext).
chunk
Wire-format chunk types and the ZiPatchReader iterator.
error
Error type returned by parsing and applying (ZiPatchError).

Enums§

Platform
Target platform for SqPack file path resolution.

Type Aliases§

Result
Crate-wide Result alias parameterised over ZiPatchError.