Skip to main content

Module path

Module path 

Source

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ยง

PathEntry
PathBuf with extra metadata.
PathSource
A source that represents a package gathered at the root path on the filesystem.
RecursivePathSource
A source that represents one or multiple packages gathered from a given root path on the filesystem.

Enumsยง

FileType ๐Ÿ”’
Type that abstracts over [gix::dir::entry::Kind] and fs::FileType.

Functionsยง

_list_files ๐Ÿ”’
See PathSource::list_files.
discover_gix_repo ๐Ÿ”’
Returns Some(gix::Repository) if the discovered repository (searched upwards from root) 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 ๐Ÿ”’