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

managed-lhapdf

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

2 releases

new 0.3.1 Jun 25, 2024
0.3.0 May 23, 2024

#372 in Science

Download history 264/week @ 2024-05-20 134/week @ 2024-05-27 118/week @ 2024-06-03 139/week @ 2024-06-10 52/week @ 2024-06-17

482 downloads per month
Used in 2 crates

GPL-3.0-or-later

39KB
659 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–14MB
~179K SLoC