diff --git a/hdf5-src/ext/hdf5 b/hdf5-src/ext/hdf5 index 0fe0459fc..db30c2da6 160000 --- a/hdf5-src/ext/hdf5 +++ b/hdf5-src/ext/hdf5 @@ -1 +1 @@ -Subproject commit 0fe0459fc24d71be13d5f266513c2832b525671b +Subproject commit db30c2da68ece4a155e9e50c28ec16d6057509b2 diff --git a/hdf5-types/build.rs b/hdf5-types/build.rs index 22c3ba138..6d5a9698a 100644 --- a/hdf5-types/build.rs +++ b/hdf5-types/build.rs @@ -4,4 +4,10 @@ fn main() { if std::env::var_os("DEP_HDF5_MSVC_DLL_INDIRECTION").is_some() { println!("cargo::rustc-cfg=windows_dll"); } + for (key, _) in std::env::vars() { + if key.starts_with("DEP_HDF5_VERSION_") { + let version = key.trim_start_matches("DEP_HDF5_VERSION_").replace("_", "."); + println!("cargo::rustc-cfg=feature=\"{version}\""); + } + } } diff --git a/hdf5/tests/test_object_references.rs b/hdf5/tests/test_object_references.rs index 4b74c87e9..ad1888d5a 100644 --- a/hdf5/tests/test_object_references.rs +++ b/hdf5/tests/test_object_references.rs @@ -7,6 +7,7 @@ use common::util::new_in_memory_file; #[cfg(feature = "1.12.1")] use hdf5::ObjectReference2; use hdf5::{H5Type, ObjectReference, ObjectReference1, ReferencedObject}; +use hdf5_metno as hdf5; fn test_group_references() { let file = new_in_memory_file().unwrap();