8 releases (4 breaking)

0.5.3 Jun 22, 2022
0.5.2 Mar 29, 2022
0.5.0 Feb 11, 2022
0.4.1 Mar 25, 2021
0.1.0 Jun 11, 2020

#218 in Science

Download history 7/week @ 2022-03-09 18/week @ 2022-03-16 26/week @ 2022-03-23 13/week @ 2022-03-30 5/week @ 2022-04-06 49/week @ 2022-04-27 46/week @ 2022-05-04 106/week @ 2022-05-11 32/week @ 2022-05-18 28/week @ 2022-05-25 54/week @ 2022-06-01 14/week @ 2022-06-08 1/week @ 2022-06-15 25/week @ 2022-06-22

94 downloads per month

GPL-3.0-or-later

310KB
7K SLoC

Rust Documentation crates.io

C API to the PineAPPL library

To use pineappl via the C API, you first need cargo-c to generate the C header. First run cargo install cargo-c to install it, and then install the C API:

cargo cinstall --release --prefix=${prefix}

Make sure to replace ${prefix} with the directory you want it installed to. This crate installs a header file, a library, and a pkg-config file, so make sure to set the necessary environment variables.

On Linux, you need to set at least PKG_CONFIG_PATH to the directory where the pineappl_capi.pc file is. It usually is in ${prefix}/lib/pkgconfig. If you've set it to right value the following command

pkg-config pineappl_capi --libs

should print the library flags needed to link against the library. If there's no output, double-check your installation and environment variables. Finally, it's probably necessary to set LD_LIBRARY_PATH to the directory where the PineAPPL shared/static library was installed to.

Dependencies

~5MB
~107K SLoC