std::archive::zip¶
Status: experimental
ZIP archive reader and writer.
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
ZipEntry |
type ZipEntry |
name + decompressed data + is_dir flag. |
read |
fn read(path: String) -> Result<Vec<(String, Vec<u8>)>, errors::Error> |
Reads all file entries from a zip stored in data. |
write |
fn write(entries: Vec<(String, Vec<u8>)>) -> Result<Vec<u8>, errors::Error> |
Builds an in-memory zip from (name, data) pairs. |