@@ -5,11 +5,11 @@ pub use self::H5F_close_degree_t::*;
55pub use self :: H5F_libver_t :: * ;
66pub use self :: H5F_mem_t :: * ;
77pub use self :: H5F_scope_t :: * ;
8- #[ cfg( not( hdf5_1_10_0 ) ) ]
8+ #[ cfg( not( feature = "1.10.0" ) ) ]
99pub use {
1010 H5F_info1_t as H5F_info_t , H5F_info1_t__sohm as H5F_info_t__sohm , H5Fget_info1 as H5Fget_info ,
1111} ;
12- #[ cfg( hdf5_1_10_0 ) ]
12+ #[ cfg( feature = "1.10.0" ) ]
1313pub use {
1414 H5F_info2_t as H5F_info_t , H5F_info2_t__free as H5F_info_t__free ,
1515 H5F_info2_t__sohm as H5F_info_t__sohm , H5F_info2_t__super as H5F_info_t__super ,
@@ -20,7 +20,7 @@ use crate::internal_prelude::*;
2020
2121use crate :: h5ac:: H5AC_cache_config_t ;
2222
23- #[ cfg_attr( hdf5_1_10_0 , deprecated( note = "deprecated in HDF5 1.10.0" ) ) ]
23+ #[ cfg_attr( feature = "1.10.0" , deprecated( note = "deprecated in HDF5 1.10.0" ) ) ]
2424pub const H5F_ACC_DEBUG : c_uint = 0x0000 ;
2525
2626/* these flags call H5check() in the C library */
@@ -68,7 +68,7 @@ impl Default for H5F_close_degree_t {
6868 }
6969}
7070
71- #[ cfg_attr( hdf5_1_10_0 , deprecated( note = "deprecated in HDF5 1.10.0, use H5F_info2_t" ) ) ]
71+ #[ cfg_attr( feature = "1.10.0" , deprecated( note = "deprecated in HDF5 1.10.0, use H5F_info2_t" ) ) ]
7272#[ repr( C ) ]
7373#[ derive( Debug , Copy , Clone ) ]
7474pub struct H5F_info1_t {
@@ -82,7 +82,7 @@ impl Default for H5F_info1_t {
8282 }
8383}
8484
85- #[ cfg_attr( hdf5_1_10_0 , deprecated( note = "deprecated in HDF5 1.10.0, use H5F_info2_t" ) ) ]
85+ #[ cfg_attr( feature = "1.10.0" , deprecated( note = "deprecated in HDF5 1.10.0, use H5F_info2_t" ) ) ]
8686#[ repr( C ) ]
8787#[ derive( Debug , Copy , Clone ) ]
8888pub struct H5F_info1_t__sohm {
@@ -110,15 +110,15 @@ pub enum H5F_mem_t {
110110 H5FD_MEM_NTYPES = 7 ,
111111}
112112
113- #[ cfg( not( hdf5_1_10_2 ) ) ]
113+ #[ cfg( not( feature = "1.10.2" ) ) ]
114114#[ repr( C ) ]
115115#[ derive( Copy , Clone , PartialEq , PartialOrd , Debug ) ]
116116pub enum H5F_libver_t {
117117 H5F_LIBVER_EARLIEST = 0 ,
118118 H5F_LIBVER_LATEST = 1 ,
119119}
120120
121- #[ cfg( hdf5_1_10_2 ) ]
121+ #[ cfg( feature = "1.10.2" ) ]
122122#[ repr( C ) ]
123123#[ derive( Copy , Clone , PartialEq , PartialOrd , Debug ) ]
124124pub enum H5F_libver_t {
@@ -129,7 +129,7 @@ pub enum H5F_libver_t {
129129 H5F_LIBVER_NBOUNDS = 3 ,
130130}
131131
132- #[ cfg( hdf5_1_10_2 ) ]
132+ #[ cfg( feature = "1.10.2" ) ]
133133pub const H5F_LIBVER_LATEST : H5F_libver_t = H5F_LIBVER_V110 ;
134134
135135impl Default for H5F_libver_t {
@@ -145,7 +145,7 @@ extern "C" {
145145 ) ]
146146 pub fn H5Fset_latest_format ( file_id : hid_t , latest_format : hbool_t ) -> herr_t ;
147147 pub fn H5Fis_hdf5 ( filename : * const c_char ) -> htri_t ;
148- #[ cfg( hdf5_1_12_0 ) ]
148+ #[ cfg( feature = "1.12.0" ) ]
149149 pub fn H5Fis_accessible ( container_name : * const c_char , fapl_id : hid_t ) -> htri_t ;
150150 pub fn H5Fcreate (
151151 filename : * const c_char , flags : c_uint , create_plist : hid_t , access_plist : hid_t ,
@@ -154,12 +154,12 @@ extern "C" {
154154 pub fn H5Freopen ( file_id : hid_t ) -> hid_t ;
155155 pub fn H5Fflush ( object_id : hid_t , scope : H5F_scope_t ) -> herr_t ;
156156 pub fn H5Fclose ( file_id : hid_t ) -> herr_t ;
157- #[ cfg( hdf5_1_12_0 ) ]
157+ #[ cfg( feature = "1.12.0" ) ]
158158 pub fn H5Fdelete ( filename : * const c_char , fapl_id : hid_t ) -> herr_t ;
159159 pub fn H5Fget_create_plist ( file_id : hid_t ) -> hid_t ;
160160 pub fn H5Fget_access_plist ( file_id : hid_t ) -> hid_t ;
161161 pub fn H5Fget_intent ( file_id : hid_t , intent : * mut c_uint ) -> herr_t ;
162- #[ cfg( hdf5_1_12_0 ) ]
162+ #[ cfg( feature = "1.12.0" ) ]
163163 pub fn H5Fget_fileno ( file_id : hid_t , fileno : * mut c_ulong ) -> herr_t ;
164164 pub fn H5Fget_obj_count ( file_id : hid_t , types : c_uint ) -> ssize_t ;
165165 pub fn H5Fget_obj_ids (
@@ -181,23 +181,23 @@ extern "C" {
181181 pub fn H5Fget_name ( obj_id : hid_t , name : * mut c_char , size : size_t ) -> ssize_t ;
182182}
183183
184- #[ cfg( hdf5_1_8_7 ) ]
184+ #[ cfg( feature = "1.8.7" ) ]
185185extern "C" {
186186 pub fn H5Fclear_elink_file_cache ( file_id : hid_t ) -> herr_t ;
187187}
188188
189- #[ cfg( hdf5_1_8_9 ) ]
189+ #[ cfg( feature = "1.8.9" ) ]
190190extern "C" {
191191 pub fn H5Fget_file_image ( file_id : hid_t , buf_ptr : * mut c_void , buf_len : size_t ) -> ssize_t ;
192192}
193193
194- #[ cfg( all( hdf5_1_8_9 , h5_have_parallel) ) ]
194+ #[ cfg( all( feature = "1.8.9" , h5_have_parallel) ) ]
195195extern "C" {
196196 pub fn H5Fset_mpi_atomicity ( file_id : hid_t , flag : hbool_t ) -> herr_t ;
197197 pub fn H5Fget_mpi_atomicity ( file_id : hid_t , flag : * mut hbool_t ) -> herr_t ;
198198}
199199
200- #[ cfg( hdf5_1_10_0 ) ]
200+ #[ cfg( feature = "1.10.0" ) ]
201201mod hdf5_1_10_0 {
202202 use super :: * ;
203203
@@ -318,15 +318,18 @@ mod hdf5_1_10_0 {
318318}
319319
320320extern "C" {
321- #[ cfg_attr( hdf5_1_10_0, deprecated( note = "deprecated in HDF5 1.10.0, use H5Fget_info2" ) ) ]
322- #[ cfg_attr( not( hdf5_1_10_0) , link_name = "H5Fget_info" ) ]
321+ #[ cfg_attr(
322+ feature = "1.10.0" ,
323+ deprecated( note = "deprecated in HDF5 1.10.0, use H5Fget_info2" )
324+ ) ]
325+ #[ cfg_attr( not( feature = "1.10.0" ) , link_name = "H5Fget_info" ) ]
323326 pub fn H5Fget_info1 ( obj_id : hid_t , finfo : * mut H5F_info1_t ) -> herr_t ;
324327}
325328
326- #[ cfg( hdf5_1_10_0 ) ]
329+ #[ cfg( feature = "1.10.0" ) ]
327330pub use self :: hdf5_1_10_0:: * ;
328331
329- #[ cfg( hdf5_1_10_1 ) ]
332+ #[ cfg( feature = "1.10.1" ) ]
330333mod hdf5_1_10_1 {
331334 use super :: * ;
332335
@@ -360,10 +363,10 @@ mod hdf5_1_10_1 {
360363 }
361364}
362365
363- #[ cfg( hdf5_1_10_1 ) ]
366+ #[ cfg( feature = "1.10.1" ) ]
364367pub use self :: hdf5_1_10_1:: * ;
365368
366- #[ cfg( hdf5_1_10_5 ) ]
369+ #[ cfg( feature = "1.10.5" ) ]
367370extern "C" {
368371 pub fn H5Fget_dset_no_attrs_hint ( file_id : hid_t , minimize : * mut hbool_t ) -> herr_t ;
369372 pub fn H5Fset_dset_no_attrs_hint ( file_id : hid_t , minimize : hbool_t ) -> herr_t ;
0 commit comments