#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

#246 in Science

Download history 48/week @ 2024-08-17 244/week @ 2024-08-24 125/week @ 2024-08-31 39/week @ 2024-09-07 219/week @ 2024-09-14 167/week @ 2024-09-21 175/week @ 2024-09-28 144/week @ 2024-10-05 277/week @ 2024-10-12 297/week @ 2024-10-19 117/week @ 2024-10-26 79/week @ 2024-11-02 35/week @ 2024-11-09 49/week @ 2024-11-16 57/week @ 2024-11-23 72/week @ 2024-11-30

218 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.8–11MB
~128K SLoC