pub struct CcDepfile {
pub files: Vec<PathBuf>,
}Expand description
A parsed GNU-style dependency list.
Fields§
§files: Vec<PathBuf>Prerequisite files named by the first rule.
Implementations§
Source§impl CcDepfile
impl CcDepfile
Sourcepub fn read(path: &Path) -> Result<Self, CcBypassReason>
pub fn read(path: &Path) -> Result<Self, CcBypassReason>
Read and parse the dependency list the compiler wrote.
Sourcepub fn read_for(
path: &Path,
family: CcCompilerFamily,
) -> Result<Self, CcBypassReason>
pub fn read_for( path: &Path, family: CcCompilerFamily, ) -> Result<Self, CcBypassReason>
Read the dependency output emitted by the selected compiler family.
Sourcepub fn read_msvc(path: &Path) -> Result<Self, CcBypassReason>
pub fn read_msvc(path: &Path) -> Result<Self, CcBypassReason>
Read MSVC’s /sourceDependencies JSON output.
Sourcepub fn parse(contents: &str) -> Result<Self, CcBypassReason>
pub fn parse(contents: &str) -> Result<Self, CcBypassReason>
Parse a GNU-style dependency list.
Only the first rule is read. The adapter never passes -MP, so a
well-formed file the adapter asked for has exactly one rule, and
anything further is ignored rather than guessed at.
Trait Implementations§
impl Eq for CcDepfile
impl StructuralPartialEq for CcDepfile
Auto Trait Implementations§
impl Freeze for CcDepfile
impl RefUnwindSafe for CcDepfile
impl Send for CcDepfile
impl Sync for CcDepfile
impl Unpin for CcDepfile
impl UnsafeUnpin for CcDepfile
impl UnwindSafe for CcDepfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more