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
- File
Reader - ZipArchive
- ZipArchive
Entry Wayfinder - Contains directions to where the Zip entry’s data is located within the Zip archive.
- ZipEntries
- ZipEntry
- ZipFile
Header Record - 4.3.12
- ZipFile
Path - Represents a path within a Zip archive.
- ZipLocal
File Header Fixed - ZipLocator
- ZipReader
- ZipSlice
Archive - ZipSlice
Entries - ZipSlice
Entry - ZipSlice
Verifier - 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§
- Compression
Method - 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§
- Reader
At - Provides reading bytes at a specific offset
Functions§
- crc32
- Compute the CRC32 (IEEE) of a byte slice