Expand description
A storage adapter for zip files for the zarrs 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 Version Compatibility Matrix
| zarrs_zip | zarrs (zarrs_storage) |
|---|---|
| 0.3-0.5 | 0.22+ (0.4.x) |
| 0.2 | 0.18-0.21 (0.3.x) |
| 0.1 | 0.17 (0.2.x) |
§Licence
zarrs_zip is licensed under either of
- the Apache License, Version 2.0 LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 or
- the MIT license LICENSE-MIT or http://opensource.org/licenses/MIT, at your option.
Structs§
- ZipStorage
Adapter - A zip storage adapter.
Enums§
- ZipStorage
Adapter Create Error - A zip store creation error.