Skip to content

Commit

Permalink
Re-export public dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 23, 2024
1 parent 825ff90 commit a0f86f2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Tests for `ByteRange`, `BytesRepresentation`, `StorePrefix`, `StoreKey`, `ArrayBuilder`, `ArraySubset`, `GroupBuilder`, `Group`, `NodeName`, `NodePath`, `Node`, `AdditionalFields`, `Metadata`, `FillValue`
- `array_subset::IncompatibleStartEndIndicesError`
- Add `array::transmute_from_bytes_vec`
- Re-export public dependencies at the crate root: `bytes`, `bytemuck`, `dyn_clone`, `serde_json`, `ndarray`, `object_store`, and `opendal`

### Changed
- **Breaking**: `Array` `retrieve_` methods now return `Vec<u8>`/`Vec<T>` instead of `Box<[u8]>`/`Box<[T]>`
Expand All @@ -23,7 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Breaking**: Rename `Node::new_with_store` to `Node::new`, and `Node::new` to `Node::new_with_metadata` for consistency with `Array`/`Group`
- Use `serde_json` `float_roundtrip` feature
- **Breaking**: Use `bytemuck` instead of `safe_transmute`
- `bytemuck` is publicly exported at the crate root
- Array methods now have `<T: bytemuck::Pod + ..>` instead of `<T: safe_transmute::TriviallyTransmutable + ..>`
- **Breaking**: Rename `array::safe_transmute_to_bytes_vec` to `array::transmute_to_bytes_vec`
- **Breaking**: Make `zfp` a private dependency by changing `Zfp{Bitstream,Field,Stream}` from `pub` to `pub(super)`
Expand Down
24 changes: 24 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,27 @@ pub mod version;

/// Re-export [`bytemuck`].
pub use bytemuck;

/// Re-export [`bytes`].
pub use bytes;

/// Re-export [`dyn_clone`].
pub use dyn_clone;

/// Re-export [`half`].
pub use half;

/// Re-export [`serde_json`].
pub use serde_json;

#[cfg(feature = "ndarray")]
/// Re-export [`ndarray`].
pub use ndarray;

#[cfg(feature = "object_store")]
/// Re-export [`object_store`].
pub use object_store;

#[cfg(feature = "opendal")]
/// Re-export [`opendal`].
pub use opendal;

0 comments on commit a0f86f2

Please sign in to comment.