Rust raw FFI bindings to the C API of clingo library. Clingo version 5.5.0.
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
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
.
sh
export CLINGO_LIBRARY_PATH=/scratch/miniconda3/envs/test/lib
The recommended way to use the optional static linking support is as follows.
toml
[dependencies]
clingo-sys = { version = "0.7.0", features = ["static-linking"] }