Skip to main content

Module source

Module source 

Source
Expand description

See GitSource.

Re-exportsยง

use crate::sources::IndexSummary; ๐Ÿ”’
use crate::sources::RecursivePathSource; ๐Ÿ”’
use crate::sources::git::utils::GitDatabase; ๐Ÿ”’
use crate::sources::git::utils::GitRemote; ๐Ÿ”’
use crate::sources::git::utils::rev_to_oid; ๐Ÿ”’
use crate::sources::source::MaybePackage; ๐Ÿ”’
use crate::sources::source::QueryKind; ๐Ÿ”’
use crate::sources::source::Source; ๐Ÿ”’
use crate::util::GlobalContext; ๐Ÿ”’
use crate::util::cache_lock::CacheLockMode; ๐Ÿ”’
use crate::util::errors::CargoResult; ๐Ÿ”’
use crate::util::hex::short_hash; ๐Ÿ”’
use crate::util::interning::InternedString; ๐Ÿ”’
use crate::workspace::GitReference; ๐Ÿ”’
use crate::workspace::SourceId; ๐Ÿ”’
use crate::workspace::global_cache_tracker; ๐Ÿ”’
use crate::workspace::Dependency; ๐Ÿ”’
use crate::workspace::Package; ๐Ÿ”’
use crate::workspace::PackageId; ๐Ÿ”’
use anyhow::Context as _; ๐Ÿ”’
use cargo_util::paths::exclude_from_backups_and_indexing; ๐Ÿ”’
use std::cell::RefCell; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Formatter; ๐Ÿ”’
use tracing::trace; ๐Ÿ”’
use url::Url; ๐Ÿ”’

Structsยง

GitSource
GitSource contains one or more packages gathering from a Git repository. Under the hood it uses RecursivePathSource to discover packages inside the repository.

Enumsยง

Revision ๐Ÿ”’
Indicates a Git revision that might be locked or deferred to be resolved.

Functionsยง

ident ๐Ÿ”’
Create an identifier from a URL, essentially turning proto://host/path/repo into repo-<hash-of-url>.
ident_shallow ๐Ÿ”’
Like ident(), but appends -shallow to it, turning proto://host/path/repo into repo-<hash-of-url>-shallow.