From c65896a51a8ef0716fb8dc2c189dc96228ac78b6 Mon Sep 17 00:00:00 2001 From: Lachlan Deakin Date: Sat, 20 Jan 2024 15:13:56 +1100 Subject: [PATCH] Reexport `object_store` and `opendal` under `zarrs::storage::store` --- CHANGELOG.md | 3 +++ src/storage/store.rs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ecf06a..02105661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + - Reexport `object_store` and `opendal` under `zarrs::storage::store` + ## [0.10.0] - 2024-01-17 ### Changed diff --git a/src/storage/store.rs b/src/storage/store.rs index 88d9aa80..f4c6397f 100644 --- a/src/storage/store.rs +++ b/src/storage/store.rs @@ -17,11 +17,17 @@ pub use store_sync::http_store::{HTTPStore, HTTPStoreCreateError}; #[cfg(feature = "object_store")] pub use store_async::object_store::AsyncObjectStore; +#[cfg(feature = "object_store")] +pub use object_store; + #[cfg(feature = "opendal")] pub use store_async::opendal::AsyncOpendalStore; #[cfg(feature = "opendal")] pub use store_sync::opendal::OpendalStore; +#[cfg(feature = "opendal")] +pub use opendal; + // pub use store_plugin::{StorePlugin, StorePluginCreateError}; // Currently disabled. use std::sync::Arc;