6 releases

new 0.1.5 Oct 17, 2024
0.1.4 Sep 8, 2024
0.1.3 Aug 20, 2024
0.1.1 Jul 25, 2024

#1024 in Algorithms

Download history 95/week @ 2024-07-12 86/week @ 2024-07-19 45/week @ 2024-07-26 109/week @ 2024-08-02 11/week @ 2024-08-09 133/week @ 2024-08-16 15/week @ 2024-08-23 112/week @ 2024-09-06 24/week @ 2024-09-13 19/week @ 2024-09-20 11/week @ 2024-09-27 2/week @ 2024-10-04

62 downloads per month
Used in meos

Custom license

495KB
15K SLoC

meos-sys

Low level MEOS C API bindings for MEOS.

It provides C-interface as is. If you want to use a more Rust-friendly crate, use the meos crate.

You can also find it on crates.io.

Version policy

Currently the bindings are generated manually using bindgen. The commit of the repository currently tracked is this one

Build

The build by default will use system-installed MEOS, pkg-config is used to automatically detect MEOS

If MEOS is in a custom location, you can instead use the MEOS_LIB_DIR environment variable to configure MEOS detection.

If MEOS_LIB_DIR is not also in your system's standard dynamic library search path, you may need to add it to the dynamic library search path before running the tests or executable produced by cargo build.

Linux:

LD_LIBRARY_PATH=<path to MEOS>/lib MEOS_LIB_DIR=<path to MEOS>/lib MEOS_VERSION=<version> cargo test

MacOS:

DYLD_FALLBACK_LIBRARY_PATH=<path to MEOS>/lib MEOS_LIB_DIR=<path to MEOS>/lib MEOS_VERSION=<version> cargo test

Binding generation

By default, meos-sys will use the pregenerated bindings for the 1.2 version, the 1.1 ones is also available. Alternatively, you can generate your own bindings from your libmeos installation by specifying the bindgen feature.

Bindings

Pre-built bindings are available for 1.2 and 1.1

Dependencies

~0–395KB