23 releases

0.9.0 Jan 30, 2026
0.8.3 Jun 12, 2025
0.8.2 May 27, 2025
0.8.1 Aug 20, 2024
0.1.0 Jun 27, 2015

#188 in Science

Download history 1982/week @ 2026-01-19 1853/week @ 2026-01-26 1793/week @ 2026-02-02 1530/week @ 2026-02-09 2267/week @ 2026-02-16 2902/week @ 2026-02-23 1731/week @ 2026-03-02 1933/week @ 2026-03-09 1701/week @ 2026-03-16 2081/week @ 2026-03-23 2370/week @ 2026-03-30 1698/week @ 2026-04-06 5181/week @ 2026-04-13 3629/week @ 2026-04-20 3312/week @ 2026-04-27 2227/week @ 2026-05-04

14,718 downloads per month
Used in 35 crates (4 directly)

MIT license

3MB
62K SLoC

C 56K SLoC // 0.2% comments Rust 3K SLoC // 0.0% comments M4 2K SLoC // 0.1% comments C++ 623 SLoC // 0.1% comments Automake 9 SLoC // 0.2% comments

netcdf-sys

Rust bindings to netcdf-c to locate and link the system libraries neccessary to use netcdf. This library can also build hdf5 and netcdf from source, to allow a fully static linking experience. This is enabled with the static feature.

Detection of netCDF

The detection of netCDF has this priority order:

  • static feature will choose the built static library
  • NETCDF_DIR environment variable
  • nc-config
  • Default linker-available netcdf

If an include file is not found, some features might not be available, despite being included in the library.

Dependencies

~1.5–8.5MB
~159K SLoC