pub struct RustcDepInfo {
pub files: Vec<PathBuf>,
pub environment: BTreeMap<String, Option<String>>,
}Expand description
The source and environment inputs reported by rustc’s dep-info output.
Fields§
§files: Vec<PathBuf>§environment: BTreeMap<String, Option<String>>Implementations§
Source§impl RustcDepInfo
impl RustcDepInfo
Sourcepub fn read(path: &Path) -> Result<Self, BypassReason>
pub fn read(path: &Path) -> Result<Self, BypassReason>
Read and parse a dep-info file, treating missing or non-UTF-8 output as an explicit cache bypass.
Sourcepub fn parse(contents: &str) -> Result<Self, BypassReason>
pub fn parse(contents: &str) -> Result<Self, BypassReason>
Parse rustc’s Makefile-style dep-info format.
This intentionally follows Cargo’s parser contract: the first target
rule contains all source dependencies, spaces are escaped with a
trailing backslash on each token fragment, and # env-dep: records
contain the environment observed by env! and option_env!.
Trait Implementations§
Source§impl Clone for RustcDepInfo
impl Clone for RustcDepInfo
Source§fn clone(&self) -> RustcDepInfo
fn clone(&self) -> RustcDepInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustcDepInfo
impl Debug for RustcDepInfo
Source§impl Default for RustcDepInfo
impl Default for RustcDepInfo
Source§fn default() -> RustcDepInfo
fn default() -> RustcDepInfo
Returns the “default value” for a type. Read more
impl Eq for RustcDepInfo
Source§impl PartialEq for RustcDepInfo
impl PartialEq for RustcDepInfo
impl StructuralPartialEq for RustcDepInfo
Auto Trait Implementations§
impl Freeze for RustcDepInfo
impl RefUnwindSafe for RustcDepInfo
impl Send for RustcDepInfo
impl Sync for RustcDepInfo
impl Unpin for RustcDepInfo
impl UnsafeUnpin for RustcDepInfo
impl UnwindSafe for RustcDepInfo
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