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
218 downloads per month
Used in 3 crates
40KB
675 lines
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, specifyno-default-features = true
when depending onmanaged-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:
- 6.4.x, see LHAPDF merge request #27
- 6.3.x, see LHAPDF issue #2
Dependencies
~0.8–11MB
~128K SLoC