Skip to content

Commit aefc45f

Browse files
committed
Add back gzip_available() but mark as deprecated
1 parent fbce026 commit aefc45f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
### Changed
1212

13-
- Renamed `filters::gzip_available()` to `deflate_available()`.
13+
- Renamed `filters::gzip_available()` to `deflate_available()` (the old name is
14+
present but marked as deprecated).
1415

1516
### Fixed
1617

src/hl/filters.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ pub fn deflate_available() -> bool {
136136
h5lock!(H5Zfilter_avail(H5Z_FILTER_DEFLATE) == 1)
137137
}
138138

139+
/// Returns `true` if deflate filter is available.
140+
#[doc(hidden)]
141+
#[deprecated(note = "deprecated; use deflate_available()")]
142+
pub fn gzip_available() -> bool {
143+
deflate_available()
144+
}
145+
139146
/// Returns `true` if szip filter is available.
140147
pub fn szip_available() -> bool {
141148
h5lock!(H5Zfilter_avail(H5Z_FILTER_SZIP) == 1)

0 commit comments

Comments
 (0)