diff --git a/doc/status/codecs.md b/doc/status/codecs.md index 93b08de2..7b8411a7 100644 --- a/doc/status/codecs.md +++ b/doc/status/codecs.md @@ -6,7 +6,7 @@ | Bytes to Bytes | [blosc] | [ZEP0001] | ✓ | ✓ | **blosc** | | | [gzip] | [ZEP0001] | ✓ | ✓ | **gzip** | | | [crc32c] | [ZEP0002] | ✓ | | **crc32c** | -| | [zstd] | [zarr-specs #256] | ✓ | | zstd | +| | [zstd] | [zarr-specs #256] | ✓ | ✓ | zstd | \* Bolded feature flags are part of the default set of features. diff --git a/doc/status/codecs_experimental.md b/doc/status/codecs_experimental.md index b9558db4..09faf9ef 100644 --- a/doc/status/codecs_experimental.md +++ b/doc/status/codecs_experimental.md @@ -2,7 +2,7 @@ Experimental codecs are recommended for evaluation only. | Codec Type | Codec | ZEP | V3 | V2 | Feature Flag | | -------------- | -------------------------------- | --- | ------- | ------- | ------------ | -| Array to Array | [bitround] | | ✓ | | bitround | +| Array to Array | [bitround] | | ✓ | ✓ | bitround | | Array to Bytes | [zfp] | | ✓ | | zfp | | | [pcodec] | | ✓ | | pcodec | | | [vlen] | | ✓ | | | diff --git a/src/metadata/v2.rs b/src/metadata/v2.rs index 5ba67539..a9b65f77 100644 --- a/src/metadata/v2.rs +++ b/src/metadata/v2.rs @@ -6,6 +6,9 @@ pub mod array; /// Zarr V2 codec metadata. pub mod codec { + #[cfg(feature = "bitround")] + /// `bitround` codec metadata. + pub mod bitround; /// `blosc` codec metadata. pub mod blosc; #[cfg(feature = "bz2")] @@ -13,6 +16,9 @@ pub mod codec { pub mod bz2; /// `gzip` codec metadata. pub mod gzip; + #[cfg(feature = "zstd")] + /// `zstd` codec metadata. + pub mod zstd; } pub use array::ArrayMetadataV2; diff --git a/src/metadata/v2/codec/bitround.rs b/src/metadata/v2/codec/bitround.rs new file mode 100644 index 00000000..795563ed --- /dev/null +++ b/src/metadata/v2/codec/bitround.rs @@ -0,0 +1 @@ +pub use crate::metadata::v3::codec::bitround::BitroundCodecConfigurationV1; diff --git a/src/metadata/v2/codec/zstd.rs b/src/metadata/v2/codec/zstd.rs new file mode 100644 index 00000000..9c613491 --- /dev/null +++ b/src/metadata/v2/codec/zstd.rs @@ -0,0 +1 @@ +pub use crate::metadata::v3::codec::zstd::ZstdCodecConfigurationV1;