Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Low-level Rust bindings for ecCodes.

License

NotificationsYou must be signed in to change notification settings

ScaleWeather/eccodes-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LicenseCrates.iodependency statusGitHub Workflow Status

This is a-sys crate with raw, unsafe bindings to the library and its API should not be used directly. See theeccodes crate for high-level, safe bindings.

Due to the complexity of ecCodes library the decision has been made that this crate will not build ecCodes from source.See sections below for additional information how to install ecCodes on your system.

ecCodes is an open-source library for reading and writing GRIB and BUFR files developed byEuropean Centre for Medium-Range Weather Forecasts.

Usage

This crate will look for existinglibeccodes installation usingpkg-config.The ecCodes library is then linked and bindings are generated usingbindgen.If the library is not found, the build will fail.

ecCodes installation

The recommended way to install ecCodes on your computer is using your package manager.For example, on Ubuntu you can useapt-get:

sudo apt-get install libeccodes-dev

Alternatively, you can install the library manually from source in suitable directoryfollowingthis instructions.

Then add thelib/pkgconfig directory from your ecCodes installation directoryto thePKG_CONFIG_PATH environmental variable. If ecCodes have been compiledas shared library you will also need to specifyLD_LIBRARY_PATH.For example:

export PKG_CONFIG_PATH=<your_eccodes_path>/lib/pkgconfigexport LD_LIBRARY_PATH=<your_eccodes_path>/lib

Features

There are two development features available:

  • docs - for documentation building, does not link ecCodes and includesbindings-docs.rs intolib.rs
  • tests - turns on generation of layout tests bybindgen, should not be used in production. Layout tests are off by default as they dereference null pointers causing undefined behavior

License

The ecCodes library and these bindings are licensed under theApache License Version 2.0


[8]ページ先頭

©2009-2025 Movatter.jp