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
- Encoded
DepInfo - Same as
RustcDepInfoexcept avoids absolute paths as much as possible to allow moving around the target directory. - Rustc
DepInfo - The representation of the
.ddep-info file generated by rustc
EnumsΒ§
- Checksum
Algo - 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.
- DepInfo
Path Type - Tells the associated path in
EncodedDepInfo::filesis relative to package root, target root, or absolute. - Invalid
Checksum
ConstantsΒ§
- CURRENT_
ENCODED_ πDEP_ INFO_ VERSION - The current format version of
EncodedDepInfo.
FunctionsΒ§
- make_
absolute_ πpath - parse_
dep_ info - Parses Cargoβs internal
EncodedDepInfostructure that was previously serialized to disk. - parse_
rustc_ dep_ info - Parse the
.ddep-info file generated by rustc. - translate_
dep_ info - Parses the dep-info file coming out of rustc into a Cargo-specific format.