#hdf5 #bindings #deprecated

sys hdf5-metno-sys

Native bindings to the HDF5 library

8 releases

0.11.3 Mar 23, 2026
0.11.2 Feb 9, 2026
0.11.1 Jan 20, 2026
0.10.1 Jan 13, 2025
0.9.1 Aug 9, 2024

#533 in Filesystem

Download history 15460/week @ 2026-01-14 16596/week @ 2026-01-21 20111/week @ 2026-01-28 21297/week @ 2026-02-04 19432/week @ 2026-02-11 20196/week @ 2026-02-18 17018/week @ 2026-02-25 57597/week @ 2026-03-04 70278/week @ 2026-03-11 62700/week @ 2026-03-18 79381/week @ 2026-03-25 79449/week @ 2026-04-01 97020/week @ 2026-04-08 88895/week @ 2026-04-15 87513/week @ 2026-04-22 89839/week @ 2026-04-29

381,945 downloads per month
Used in 79 crates (15 directly)

MIT/Apache

4.5MB
63K SLoC

C 56K SLoC // 0.4% comments Rust 7.5K SLoC // 0.0% comments Automake 5 SLoC // 0.6% comments

hdf5-sys

This crate provides direct bindings to the HDF5 C library and allows to build the library from C sources if need be, so it can be linked in statically.

Static linking

This crate supports linking to a static build of HDF5. The HDF5 C library is built via the hdf5-src crate which is then linked in when the static feature is set. See below for a list of supported options for static builds.

As of the time of writing, the version of the HDF5 library that is built is 2.0.0, but it may be incremented later.

Crate features

Features propagated upwards will be detected based on features available for the chosen library. The library selected can always be overridden by specifying the environment variable HDF5_DIR.

General features:

  • mpio: enable MPI support (not supported in static mode)
  • static: build HDF5 C library from source (see below for a list of options)

These options are mutually exclusive. This combination could be supported in the future, see issue #101.

The following features affect the HDF5 build options when compiling it from source:

  • hl: enable high-level features (which we don't provide bindings for)
  • threadsafe: build a thread-safe version of the library
  • zlib: enable zlib filter support
  • deprecated: include deprecated symbols (which we don't provide bindings for)

Note: HDF5 library has a separate BSD-style license.

Dependencies