Re-exportsยง
use cargo_util::collections::HashMap;๐use cargo_util::collections::HashSet;๐use std::cell::Cell;๐use std::cell::RefCell;๐use std::fmt;๐use std::fmt::Debug;๐use std::fmt::Debug;๐use std::fmt::Formatter;๐use std::fs;๐use std::io;๐use std::path::Path;๐use std::path::PathBuf;๐use crate::ops;๐use crate::sources::IndexSummary;๐use crate::sources::source::MaybePackage;๐use crate::sources::source::QueryKind;๐use crate::sources::source::Source;๐use crate::util::GlobalContext;๐use crate::util::VersionReqMatchMode;๐use crate::util::errors::CargoResult;๐use crate::util::important_paths::find_project_manifest_exact;๐use crate::util::internal;๐use crate::workspace::parser::read_manifest;๐use crate::workspace::Dependency;๐use crate::workspace::EitherManifest;๐use crate::workspace::Manifest;๐use crate::workspace::Package;๐use crate::workspace::PackageId;๐use crate::workspace::SourceId;๐use anyhow::Context as _;๐use cargo_util::paths;๐use filetime::FileTime;๐use gix::bstr::BString;๐use gix::bstr::ByteVec;๐use gix::dir::entry::Status;๐use gix::index::entry::Stage;๐use ignore::gitignore::GitignoreBuilder;๐use tracing::debug;๐use tracing::info;๐use tracing::trace;๐use tracing::warn;๐use walkdir::WalkDir;๐
Structsยง
- Path
Entry PathBufwith extra metadata.- Path
Source - A source that represents a package gathered at the root path on the filesystem.
- Recursive
Path Source - A source that represents one or multiple packages gathered from a given root path on the filesystem.
Enumsยง
- File
Type ๐ - Type that abstracts over [
gix::dir::entry::Kind] andfs::FileType.
Functionsยง
- _list_
files ๐ - See
PathSource::list_files. - discover_
gix_ ๐repo - Returns
Some(gix::Repository)if the discovered repository (searched upwards fromroot) contains a tracked<root>/Cargo.toml. Otherwise, the caller should fall back on full file list. - first_
package ๐ - has_
manifest ๐ - last_
modified_ ๐file - Gets the last modified file in a package.
- list_
files - List all files relevant to building this package inside this source.
- list_
files_ ๐gix - Lists files relevant to building this package inside this source by traversing the git working tree, while avoiding ignored files.
- list_
files_ ๐walk - Lists files relevant to building this package inside this source by walking the filesystem from the package root path.
- nested_
paths ๐ - read_
nested_ ๐packages - read_
packages ๐ - walk ๐