Skip to main content

Module dep_info

Module dep_info 

Source
Expand description

Types and functions managing dep-info files. For more, see the documentation in the fingerprint module.

Re-exportsΒ§

use cargo_util::collections::HashMap; πŸ”’
use std::ffi::OsString; πŸ”’
use std::fmt; πŸ”’
use std::io; πŸ”’
use std::io::Read; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use std::str; πŸ”’
use std::str::FromStr; πŸ”’
use std::sync::Arc; πŸ”’
use anyhow::bail; πŸ”’
use cargo_util::ProcessBuilder; πŸ”’
use cargo_util::Sha256; πŸ”’
use cargo_util::paths; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use crate::CARGO_ENV; πŸ”’
use crate::CargoResult; πŸ”’
use crate::workspace::manifest::ManifestMetadata; πŸ”’

StructsΒ§

Checksum
EncodedDepInfo
Same as RustcDepInfo except avoids absolute paths as much as possible to allow moving around the target directory.
RustcDepInfo
The representation of the .d dep-info file generated by rustc

EnumsΒ§

ChecksumAlgo
Some algorithms are here to ensure compatibility with possible rustc outputs. The presence of an algorithm here is not a suggestion that it’s fit for use.
DepInfoPathType
Tells the associated path in EncodedDepInfo::files is relative to package root, target root, or absolute.
InvalidChecksum

ConstantsΒ§

CURRENT_ENCODED_DEP_INFO_VERSION πŸ”’
The current format version of EncodedDepInfo.

FunctionsΒ§

make_absolute_path πŸ”’
parse_dep_info
Parses Cargo’s internal EncodedDepInfo structure that was previously serialized to disk.
parse_rustc_dep_info
Parse the .d dep-info file generated by rustc.
translate_dep_info
Parses the dep-info file coming out of rustc into a Cargo-specific format.