Skip to content

Commit

Permalink
Switch to only feature=.. checking
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Aug 8, 2024
1 parent fd84524 commit c496ccf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion hdf5-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ impl Config {
"cargo::rustc-check-cfg=cfg(feature, values(\"{}.{}.{}\"))",
v.major, v.minor, v.micro
);
println!("cargo::rustc-check-cfg=cfg(hdf5_{}_{}_{})", v.major, v.minor, v.micro);
}
for v in known_hdf5_versions().into_iter().filter(|&v| version >= v) {
println!("cargo::rustc-cfg=feature=\"{}.{}.{}\"", v.major, v.minor, v.micro);
Expand Down
2 changes: 1 addition & 1 deletion hdf5-sys/src/h5f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Default for H5F_libver_t {

extern "C" {
#[cfg_attr(
hdf5_1_10_2,
feature = "1.10.2",
deprecated(note = "deprecated in HDF5 1.10.2, use H5Fset_libver_bounds()")
)]
pub fn H5Fset_latest_format(file_id: hid_t, latest_format: hbool_t) -> herr_t;
Expand Down
6 changes: 3 additions & 3 deletions hdf5-sys/src/h5l.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ extern "C" {
loc_id: hid_t, name: *const c_char, linfo: *mut H5L_info2_t, lapl_id: hid_t,
) -> herr_t;
#[cfg_attr(
hdf5_1_12_0,
feature = "1.12.0",
deprecated(note = "deprecated in HDF5 1.12.0, use H5Lget_info_by_idx2()")
)]
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Lget_info_by_idx")]
Expand Down Expand Up @@ -307,7 +307,7 @@ extern "C" {
op: H5L_iterate2_t, op_data: *mut c_void,
) -> herr_t;
#[cfg_attr(
hdf5_1_12_0,
feature = "1.12.0",
deprecated(note = "deprecated in HDF5 1.12.0, use H5Literate_by_name2()")
)]
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Literate_by_name")]
Expand All @@ -332,7 +332,7 @@ extern "C" {
op_data: *mut c_void,
) -> herr_t;
#[cfg_attr(
hdf5_1_12_0,
feature = "1.12.0",
deprecated(note = "deprecated in HDF5 1.12.0, use H5Lvisit_by_name2()")
)]
#[cfg_attr(not(feature = "1.12.0"), link_name = "H5Lvisit_by_name")]
Expand Down
4 changes: 2 additions & 2 deletions hdf5-sys/src/h5p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,14 +709,14 @@ extern "C" {
) -> herr_t;
pub fn H5Pdecode(buf: *const c_void) -> hid_t;
#[cfg_attr(
hdf5_1_10_1,
feature = "1.10.1",
deprecated(note = "deprecated in HDF5 1.10.1, use H5Pset_file_space_strategy()")
)]
pub fn H5Pset_file_space(
plist_id: hid_t, strategy: H5F_file_space_type_t, threshold: hsize_t,
) -> herr_t;
#[cfg_attr(
hdf5_1_10_1,
feature = "1.10.1",
deprecated(note = "deprecated in HDF5 1.10.1, use H5Pget_file_space_strategy()")
)]
pub fn H5Pget_file_space(
Expand Down

0 comments on commit c496ccf

Please sign in to comment.