Skip to content

Commit ef23e6d

Browse files
committed
fix: Add cargo feature checks to hdf5-types
Needed to add the check cfg for the version features in the hdf-types library
1 parent 348defc commit ef23e6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hdf5-types/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ fn main() {
44
if std::env::var_os("DEP_HDF5_MSVC_DLL_INDIRECTION").is_some() {
55
println!("cargo::rustc-cfg=windows_dll");
66
}
7+
8+
// Declare the known HDF5 versions we might feature flag on
9+
// in this crate.
10+
println!("cargo::rustc-check-cfg=cfg(feature, values(\"1.12.0\"))");
11+
712
for (key, _) in std::env::vars() {
813
if key.starts_with("DEP_HDF5_VERSION_") {
914
let version = key.trim_start_matches("DEP_HDF5_VERSION_").replace("_", ".");

0 commit comments

Comments
 (0)