@@ -16,7 +16,7 @@ pub const H5D_CHUNK_CACHE_NBYTES_DEFAULT: size_t = !0;
16
16
17
17
pub const H5D_CHUNK_CACHE_W0_DEFAULT : c_float = -1.0 ;
18
18
19
- #[ cfg( not( hdf5_1_10_0 ) ) ]
19
+ #[ cfg( not( feature = "1.10.0" ) ) ]
20
20
#[ repr( C ) ]
21
21
#[ derive( Copy , Clone , PartialEq , PartialOrd , Debug ) ]
22
22
pub enum H5D_layout_t {
@@ -134,15 +134,15 @@ pub type H5D_operator_t = Option<
134
134
) -> herr_t ,
135
135
> ;
136
136
137
- #[ cfg( hdf5_1_8_11 ) ]
137
+ #[ cfg( feature = "1.8.11" ) ]
138
138
pub type H5D_scatter_func_t = Option <
139
139
extern "C" fn (
140
140
src_buf : * mut * const c_void ,
141
141
src_buf_bytes_used : * mut size_t ,
142
142
op_data : * mut c_void ,
143
143
) -> herr_t ,
144
144
> ;
145
- #[ cfg( hdf5_1_8_11 ) ]
145
+ #[ cfg( feature = "1.8.11" ) ]
146
146
pub type H5D_gather_func_t = Option <
147
147
extern "C" fn (
148
148
dst_buf : * const c_void ,
@@ -180,7 +180,7 @@ extern "C" {
180
180
buf : * mut c_void , type_id : hid_t , space_id : hid_t , op : H5D_operator_t ,
181
181
operator_data : * mut c_void ,
182
182
) -> 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" ) ) ]
184
184
pub fn H5Dvlen_reclaim (
185
185
type_id : hid_t , space_id : hid_t , plist_id : hid_t , buf : * mut c_void ,
186
186
) -> herr_t ;
@@ -201,7 +201,7 @@ extern "C" {
201
201
pub fn H5Dopen1 ( file_id : hid_t , name : * const c_char ) -> hid_t ;
202
202
}
203
203
204
- #[ cfg( hdf5_1_8_11 ) ]
204
+ #[ cfg( feature = "1.8.11" ) ]
205
205
extern "C" {
206
206
pub fn H5Dscatter (
207
207
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" {
213
213
) -> herr_t ;
214
214
}
215
215
216
- #[ cfg( hdf5_1_10_0 ) ]
216
+ #[ cfg( feature = "1.10.0" ) ]
217
217
mod hdf5_1_10_0 {
218
218
use super :: * ;
219
219
@@ -260,10 +260,10 @@ mod hdf5_1_10_0 {
260
260
}
261
261
}
262
262
263
- #[ cfg( hdf5_1_10_0 ) ]
263
+ #[ cfg( feature = "1.10.0" ) ]
264
264
pub use self :: hdf5_1_10_0:: * ;
265
265
266
- #[ cfg( hdf5_1_10_3 ) ]
266
+ #[ cfg( feature = "1.10.3" ) ]
267
267
extern "C" {
268
268
pub fn H5Dread_chunk (
269
269
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" {
274
274
) -> herr_t ;
275
275
}
276
276
277
- #[ cfg( hdf5_1_10_5 ) ]
277
+ #[ cfg( feature = "1.10.5" ) ]
278
278
extern "C" {
279
279
pub fn H5Dget_chunk_info (
280
280
dset_id : hid_t , fspace_id : hid_t , index : hsize_t , offset : * mut hsize_t ,
0 commit comments