#high-energy-physics #physics #bindings #pdf #function #member #lhapdf

managed-lhapdf

(Unofficial) Rust bindings for the LHAPDF C++ library

5 releases

0.3.4 Aug 24, 2024
0.3.3 Jun 27, 2024
0.3.2 Jun 26, 2024
0.3.1 Jun 25, 2024
0.3.0 May 23, 2024

#217 in Science

Download history 259/week @ 2024-08-05 404/week @ 2024-08-12 175/week @ 2024-08-19 121/week @ 2024-08-26 131/week @ 2024-09-02 24/week @ 2024-09-09 222/week @ 2024-09-16 168/week @ 2024-09-23 193/week @ 2024-09-30 134/week @ 2024-10-07 286/week @ 2024-10-14 297/week @ 2024-10-21 107/week @ 2024-10-28 68/week @ 2024-11-04 38/week @ 2024-11-11 57/week @ 2024-11-18

282 downloads per month
Used in 3 crates

GPL-3.0-or-later

40KB
675 lines

Rust codecov Documentation crates.io MSRV

Description

(Unofficial) Rust bindings for the LHAPDF C++ library, with automatic management functions. This is the successor of https://github.com/cschwan/lhapdf.

Rust feature flags

  • managed: this feature flag enables the automatic downloading of PDFs. If you would like to disable this feature, specify no-default-features = true when depending on managed-lhapdf.
  • static: when enabled, the LHAPDF library will be linked statically. This allows to redistribute built binaries that run on systems where LHAPDF isn't installed.

(Un)safeness

The struct Pdf implements Send and Sync, which is only safe as long as the corresponding member functions in LHAPDF are truly thread safe. The following versions are known not to be thread safe:

Dependencies

~0.7–11MB
~127K SLoC