1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Build-script-only support crate for the DFT-D3 dispersion correction.
//!
//! This crate contains no Rust API. Its `build.rs` provides the native
//! `s-dftd3` (and its `mctc-lib` dependency) as **static** archives and
//! emits the corresponding `cargo:rustc-link-lib` directives, so anything
//! depending on this crate links `libs-dftd3.a` + `libmctc-lib.a` directly
//! into the final binary — no `libs-dftd3.so` ever ends up next to the
//! wheel.
//!
//! The Rust FFI bindings and the safe wrapper API come from the [`dftd3`]
//! crate (crates.io, RESTGroup/dftd3-rs), wired up without its
//! `dynamic_loading` feature (which would `dlopen` a shared library at
//! runtime). `fastatomstruct-simulation`'s `dftd3` cargo feature pulls in
//! both crates.
//!
//! [`dftd3`]: https://crates.io/crates/dftd3
/// The simple-dftd3 release this crate links. Referenced from
/// `fastatomstruct-simulation` (or any downstream user) so the crate is
/// part of every final link graph — rustc prunes unreferenced crates, and
/// with them the static-archive link flags emitted by this crate's build
/// script.
///
/// Derived from the `SDFTD3_TAG` pin in `build.rs` via
/// `cargo:rustc-env=SDFTD3_VERSION`, so it can never drift from the
/// library that was actually built (finding F0459).
pub const SDFTD3_VERSION: &str = env!;