44 releases

new 1.0.0-alpha4 Apr 7, 2025
1.0.0-alpha2 Feb 15, 2025
0.8.7 Jan 22, 2025
0.8.6 Oct 18, 2024
0.1.0 Jun 11, 2020

#170 in Science

Download history 120/week @ 2025-01-19 10/week @ 2025-01-26 5/week @ 2025-02-02 58/week @ 2025-02-09 69/week @ 2025-02-16 26/week @ 2025-02-23 9/week @ 2025-03-02 201/week @ 2025-04-06

201 downloads per month

GPL-3.0-or-later

375KB
8K 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

~3.5MB
~72K SLoC