clingo-sys Build StatusLatest VersionRust Documentation

Rust raw FFI bindings to the C API of clingo library. Clingo version 5.5.0.

Requirements library

Per default the crate uses the clingo library via dynamic linking. It is assumed that a clingo dynamic library is installed on the system. You have to set the environment variable CLINGO_LIBRARY_PATH. For example:

sh export CLINGO_LIBRARY_PATH=/scratch/miniconda3/envs/test/lib

Using static-linking

The crate defines a [Cargo feature] that allows to use the clingo library via static linking.

Attention: currently static-linking does not work with dl-theory.

The recommended way to use the optional static linking support is as follows.

toml [dependencies] clingo-sys = { version = "0.7.1", features = ["static-linking"] }