Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
eccodes-sys
This is a -sys
crate with raw, unsafe bindings to the library and its API should not be used directly. See the eccodes crate for high-level, safe bindings.
ecCodes is an open-source library for reading and writing GRIB and BUFR files developed by European Centre for Medium-Range Weather Forecasts.
Usage
By default this crate will look for existing libeccodes
installation using pkg-config. If the library is not found, the crate will attempt to download the latest source code and build ecCodes from source.
To install ecCodes globally to use with this crate apt-get
can be used:
Because ecCodes supports mainly Linux platforms, this crate is not tested on other architectures.
Features
The eccodes-sys
crate allows to choose several features. For a detailed explanation of ecCodes compilation options check the official website.
build_source
- ecCodes library will be built from source even if other installation exists. This option by default builds static library with MEMFS activated.
All following features activate building from source:
jpeg
- builds ecCodes with JPEG2000 support enabled (ENABLE_JPG=ON
). Requireslibopenjp2-7-dev
to be installed.png
- builds ecCodes with PNG support enabled (ENABLE_PNG=ON
). Requireslibpng-dev
to be installed.netcdf
- builds ecCodes with NETCDF support enabled (ENABLE_NETCDF=ON
). Requireslibnetcdff-dev
andlibnetcdf-c++4-dev
to be installed.
There are also two advanced features which should be used only when you know that compilation files will not be removed:
shared
- builds ecCodes as shared library (BUILD_SHARED_LIBS=ON
)no_memfs
- builds ecCodes with MEMFS deactivated (ENABLE_MEMFS=OFF
)
License
The ecCodes library and these bindings are licensed under the Apache License Version 2.0