Crate rawzip

Source
Expand description

§Rawzip

🚧 👷 This is pre-alpha prior to v0.1.0. Features are missing. Will eat your homework 👷 🚧

A low-level Zip archive reader and writer. Pure Rust. Zero dependencies. Zero unsafe. Fast.

§Use Cases

  • Bring your own compressor: Leverage the best Rust crates for your needs.
  • Concurrent streaming decompression: Parallelize decompression without synchronization.
  • Minimal allocations: rawzip deserializes into provided buffers to cut down unnecessary memory usage even as Zip files scale to hundreds of thousands of entries.
  • Zero-copy: No allocations or copying needed when the entire Zip file is buffered in memory. Ideal for environments like WebAssembly.
  • Raw access: Directly read the compressed bytes and leverage optimal in-memory libraries like libdeflater and zune-inflate.
  • Zip file creation: Nothing special, but it’s good to be able to create Zip archives.

Structs§

Error
FileReader
ZipArchive
ZipArchiveEntryWayfinder
Contains directions to where the Zip entry’s data is located within the Zip archive.
ZipEntries
ZipEntry
ZipFileHeaderRecord
4.3.12
ZipFilePath
Represents a path within a Zip archive.
ZipLocalFileHeaderFixed
ZipLocator
ZipReader
ZipSliceArchive
ZipSliceEntries
ZipSliceEntry
ZipSliceVerifier
ZipStr
Textual data borrowed from Zip archive
ZipString
Textual data from a Zip archive
ZipVerification
ZipVerifier
Verifies the checksum of the decompressed data matches the checksum listed in the zip

Enums§

CompressionMethod
The compression method used on an individual Zip archive entry

Constants§

RECOMMENDED_BUFFER_SIZE
The recommended buffer size to use when reading from a zip file.

Traits§

ReaderAt
Provides reading bytes at a specific offset

Functions§

crc32
Compute the CRC32 (IEEE) of a byte slice