Expand description
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 — there is never a stray libs-dftd3.so to ship
or find at runtime.
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.
Constants§
- SDFT
D3_ VERSION - 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.