Skip to content

Commit e84fda7

Browse files
committed
Switch to only feature=.. checking
1 parent c191d49 commit e84fda7

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

hdf5-sys/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,6 @@ impl Config {
661661
"cargo::rustc-check-cfg=cfg(feature, values(\"{}.{}.{}\"))",
662662
v.major, v.minor, v.micro
663663
);
664-
println!("cargo::rustc-check-cfg=cfg(hdf5_{}_{}_{})", v.major, v.minor, v.micro);
665664
}
666665
for v in known_hdf5_versions().into_iter().filter(|&v| version >= v) {
667666
println!("cargo::rustc-cfg=feature=\"{}.{}.{}\"", v.major, v.minor, v.micro);

hdf5-sys/src/h5f.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Default for H5F_libver_t {
144144

145145
extern "C" {
146146
#[cfg_attr(
147-
hdf5_1_10_2,
147+
feature = "1.10.2",
148148
deprecated(note = "deprecated in HDF5 1.10.2, use H5Fset_libver_bounds()")
149149
)]
150150
pub fn H5Fset_latest_format(file_id: hid_t, latest_format: hbool_t) -> herr_t;

hdf5-sys/src/h5l.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ extern "C" {
275275
loc_id: hid_t, name: *const c_char, linfo: *mut H5L_info2_t, lapl_id: hid_t,
276276
) -> herr_t;
277277
#[cfg_attr(
278-
hdf5_1_12_0,
278+
feature = "1.12.0",
279279
deprecated(note = "deprecated in HDF5 1.12.0, use H5Lget_info_by_idx2()")
280280
)]
281281
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Lget_info_by_idx")]
@@ -307,7 +307,7 @@ extern "C" {
307307
op: H5L_iterate2_t, op_data: *mut c_void,
308308
) -> herr_t;
309309
#[cfg_attr(
310-
hdf5_1_12_0,
310+
feature = "1.12.0",
311311
deprecated(note = "deprecated in HDF5 1.12.0, use H5Literate_by_name2()")
312312
)]
313313
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Literate_by_name")]
@@ -332,7 +332,7 @@ extern "C" {
332332
op_data: *mut c_void,
333333
) -> herr_t;
334334
#[cfg_attr(
335-
hdf5_1_12_0,
335+
feature = "1.12.0",
336336
deprecated(note = "deprecated in HDF5 1.12.0, use H5Lvisit_by_name2()")
337337
)]
338338
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Lvisit_by_name")]

hdf5-sys/src/h5p.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,14 +709,14 @@ extern "C" {
709709
) -> herr_t;
710710
pub fn H5Pdecode(buf: *const c_void) -> hid_t;
711711
#[cfg_attr(
712-
hdf5_1_10_1,
712+
feature = "1.10.1",
713713
deprecated(note = "deprecated in HDF5 1.10.1, use H5Pset_file_space_strategy()")
714714
)]
715715
pub fn H5Pset_file_space(
716716
plist_id: hid_t, strategy: H5F_file_space_type_t, threshold: hsize_t,
717717
) -> herr_t;
718718
#[cfg_attr(
719-
hdf5_1_10_1,
719+
feature = "1.10.1",
720720
deprecated(note = "deprecated in HDF5 1.10.1, use H5Pget_file_space_strategy()")
721721
)]
722722
pub fn H5Pget_file_space(

0 commit comments

Comments
 (0)