#[non_exhaustive]pub struct CallerDepfile {
pub path: PathBuf,
pub targets: Vec<DepfileTarget>,
pub user_headers_only: bool,
pub phony_targets: bool,
}Expand description
A dependency list the caller asked the driver to write beside the object.
Build systems driving the compiler through a build script – OpenSSL’s
makefiles under openssl-src, CMake under many -sys crates – ask for one
with -MD or -MMD so their own rebuild logic has something to read. The
flags do not change the object, so they are not key material, and the file
names paths on this machine, so it is never stored. The shim writes it
itself from the dependency list it already collects, whether the object
was compiled or restored.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBufWhere the list goes: -MF, or the object’s path with a .d extension.
targets: Vec<DepfileTarget>The rule’s targets, from -MT and -MQ, or the object as -o named it.
user_headers_only: boolWhether system headers are left out, as -MMD does.
phony_targets: boolWhether every header also gets an empty rule of its own, as -MP does.
Trait Implementations§
Source§impl Clone for CallerDepfile
impl Clone for CallerDepfile
Source§fn clone(&self) -> CallerDepfile
fn clone(&self) -> CallerDepfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more