Skip to content

Commit

Permalink
Merge pull request #82 from LDeakin/v3_metadata_non_exhaustive
Browse files Browse the repository at this point in the history
Mark `GroupMetadataV3` and `ArrayMetadataV3` as non-exhaustive
  • Loading branch information
LDeakin authored Oct 3, 2024
2 parents db2a026 + 7d5bc4a commit 10d3b80
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ members = [
]

[workspace.dependencies.zarrs_metadata]
version = "0.1.0"
version = "0.2.0"
path = "zarrs_metadata"

[workspace.dependencies.zarrs_storage]
Expand Down
2 changes: 1 addition & 1 deletion zarrs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ num = { version = "0.4.1" }
pco = { version = "0.3.1", optional = true }
rayon = "1.10.0"
rayon_iter_concurrent_limit = "0.2.0"
serde = { version = "1.0.184", features = ["derive"] }
serde = { version = "1.0.185", features = ["derive"] }
serde_json = { version = "1.0.71", features = ["float_roundtrip", "preserve_order"] }
thiserror = "1.0.61"
thread_local = "1.1.8"
Expand Down
3 changes: 3 additions & 0 deletions zarrs_metadata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- **Breaking**: Mark `GroupMetadataV3` and `ArrayMetadataV3` as non-exhaustive

## [0.1.0] - 2024-09-02

### Added
Expand Down
4 changes: 2 additions & 2 deletions zarrs_metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zarrs_metadata"
version = "0.1.0"
version = "0.2.0"
authors = ["Lachlan Deakin <[email protected]>"]
edition = "2021"
rust-version = "1.76"
Expand All @@ -16,7 +16,7 @@ derive_more = { version = "1.0.0", features = ["display", "from"] }
half = { version = "2.0.0", features = ["bytemuck"] }
monostate = "0.1.0"
num = { version = "0.4.1" }
serde = { version = "1.0.184", features = ["derive"] }
serde = { version = "1.0.185", features = ["derive"] }
serde_json = { version = "1.0.71", features = ["float_roundtrip", "preserve_order"] }
serde_repr = "0.1.19"
thiserror = "1.0.61"
1 change: 1 addition & 0 deletions zarrs_metadata/src/v3/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pub mod nan_representations;
/// }
/// }
/// ```
#[non_exhaustive]
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug, Display)]
#[display("{}", serde_json::to_string(self).unwrap_or_default())]
pub struct ArrayMetadataV3 {
Expand Down
1 change: 1 addition & 0 deletions zarrs_metadata/src/v3/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use super::AdditionalFields;
/// "eggs": 42,
/// }
/// }
#[non_exhaustive]
#[derive(Serialize, Deserialize, Clone, Eq, PartialEq, Debug, Display)]
#[display("{}", serde_json::to_string(self).unwrap_or_default())]
pub struct GroupMetadataV3 {
Expand Down

0 comments on commit 10d3b80

Please sign in to comment.