@@ -16,7 +16,7 @@ pub const H5D_CHUNK_CACHE_NBYTES_DEFAULT: size_t = !0;
1616
1717pub const H5D_CHUNK_CACHE_W0_DEFAULT : c_float = -1.0 ;
1818
19- #[ cfg( not( hdf5_1_10_0 ) ) ]
19+ #[ cfg( not( feature = "1.10.0" ) ) ]
2020#[ repr( C ) ]
2121#[ derive( Copy , Clone , PartialEq , PartialOrd , Debug ) ]
2222pub enum H5D_layout_t {
@@ -134,15 +134,15 @@ pub type H5D_operator_t = Option<
134134 ) -> herr_t ,
135135> ;
136136
137- #[ cfg( hdf5_1_8_11 ) ]
137+ #[ cfg( feature = "1.8.11" ) ]
138138pub type H5D_scatter_func_t = Option <
139139 extern "C" fn (
140140 src_buf : * mut * const c_void ,
141141 src_buf_bytes_used : * mut size_t ,
142142 op_data : * mut c_void ,
143143 ) -> herr_t ,
144144> ;
145- #[ cfg( hdf5_1_8_11 ) ]
145+ #[ cfg( feature = "1.8.11" ) ]
146146pub type H5D_gather_func_t = Option <
147147 extern "C" fn (
148148 dst_buf : * const c_void ,
@@ -180,7 +180,7 @@ extern "C" {
180180 buf : * mut c_void , type_id : hid_t , space_id : hid_t , op : H5D_operator_t ,
181181 operator_data : * mut c_void ,
182182 ) -> herr_t ;
183- #[ cfg_attr( hdf5_1_12_0 , deprecated( note = "deprecated in HDF5 1.12.0, use H5Treclaim" ) ) ]
183+ #[ cfg_attr( feature = "1.12.0" , deprecated( note = "deprecated in HDF5 1.12.0, use H5Treclaim" ) ) ]
184184 pub fn H5Dvlen_reclaim (
185185 type_id : hid_t , space_id : hid_t , plist_id : hid_t , buf : * mut c_void ,
186186 ) -> herr_t ;
@@ -201,7 +201,7 @@ extern "C" {
201201 pub fn H5Dopen1 ( file_id : hid_t , name : * const c_char ) -> hid_t ;
202202}
203203
204- #[ cfg( hdf5_1_8_11 ) ]
204+ #[ cfg( feature = "1.8.11" ) ]
205205extern "C" {
206206 pub fn H5Dscatter (
207207 op : H5D_scatter_func_t , op_data : * mut c_void , type_id : hid_t , dst_space_id : hid_t ,
@@ -213,7 +213,7 @@ extern "C" {
213213 ) -> herr_t ;
214214}
215215
216- #[ cfg( hdf5_1_10_0 ) ]
216+ #[ cfg( feature = "1.10.0" ) ]
217217mod hdf5_1_10_0 {
218218 use super :: * ;
219219
@@ -260,10 +260,10 @@ mod hdf5_1_10_0 {
260260 }
261261}
262262
263- #[ cfg( hdf5_1_10_0 ) ]
263+ #[ cfg( feature = "1.10.0" ) ]
264264pub use self :: hdf5_1_10_0:: * ;
265265
266- #[ cfg( hdf5_1_10_3 ) ]
266+ #[ cfg( feature = "1.10.3" ) ]
267267extern "C" {
268268 pub fn H5Dread_chunk (
269269 dset_id : hid_t , dxpl_id : hid_t , offset : * const hsize_t , filters : * mut u32 , buf : * mut c_void ,
@@ -274,7 +274,7 @@ extern "C" {
274274 ) -> herr_t ;
275275}
276276
277- #[ cfg( hdf5_1_10_5 ) ]
277+ #[ cfg( feature = "1.10.5" ) ]
278278extern "C" {
279279 pub fn H5Dget_chunk_info (
280280 dset_id : hid_t , fspace_id : hid_t , index : hsize_t , offset : * mut hsize_t ,
0 commit comments