hdf5-metno-types 0.10.1

Native Rust equivalents of HDF5 types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    println!("cargo::rerun-if-changed=build.rs");
    println!("cargo::rustc-check-cfg=cfg(windows_dll)");
    if std::env::var_os("DEP_HDF5_MSVC_DLL_INDIRECTION").is_some() {
        println!("cargo::rustc-cfg=windows_dll");
    }

    // Declare the known HDF5 versions we might feature flag on
    // in this crate.
    println!("cargo::rustc-check-cfg=cfg(feature, values(\"1.12.0\"))");

    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}\"");
        }
    }
}