Skip to content

Commit

Permalink
fix object references for new metno fork
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMc86 committed Nov 16, 2024
1 parent 141eccf commit 348defc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hdf5-src/ext/hdf5
Submodule hdf5 updated 4731 files
6 changes: 6 additions & 0 deletions hdf5-types/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"");
}
}
}
1 change: 1 addition & 0 deletions hdf5/tests/test_object_references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R: ObjectReference>() {
let file = new_in_memory_file().unwrap();
Expand Down

0 comments on commit 348defc

Please sign in to comment.