| Crates.io | zarrs_zip |
| lib.rs | zarrs_zip |
| version | 0.5.0 |
| created_at | 2024-09-15 09:36:16.648161+00 |
| updated_at | 2026-01-12 16:34:58.510845+00 |
| description | A storage adapter for zip files for the zarrs crate |
| homepage | https://zarrs.dev |
| repository | https://github.com/zarrs/zarrs_zip |
| max_upload_size | |
| id | 1375347 |
| size | 188,677 |
A storage adapter for zip files for the zarrs Rust crate.
use zarrs_storage::StoreKey;
use zarrs_filesystem::FilesystemStore;
use zarrs_zip::ZipStorageAdapter;
let fs_root = PathBuf::from("/path/to/a/directory");
let fs_store = Arc::new(FilesystemStore::new(&fs_root)?);
let zip_key = StoreKey::new("zarr.zip")?;
let zip_store = Arc::new(ZipStorageAdapter::new(fs_store, zip_key)?);
See a full example at examples/zip_array_write_read.rs.
zarrs_zip is licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.