34 releases

new 0.7.4-rc.1 Feb 24, 2024
0.6.3 Dec 12, 2023
0.6.2 Oct 9, 2023
0.6.1 Jul 18, 2023
0.1.0 Jun 11, 2020

#107 in Science

Download history 1/week @ 2023-11-03 29/week @ 2023-11-10 3/week @ 2023-11-17 56/week @ 2023-11-24 73/week @ 2023-12-01 26/week @ 2023-12-08 31/week @ 2023-12-15 57/week @ 2023-12-22 1/week @ 2023-12-29 30/week @ 2024-01-05 2/week @ 2024-01-12 9/week @ 2024-01-19 28/week @ 2024-01-26 29/week @ 2024-02-02 31/week @ 2024-02-09 444/week @ 2024-02-16

532 downloads per month

GPL-3.0-or-later

395KB
9K 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

~6–17MB
~196K SLoC