Skip to main content

Module source

Module source 

Source
Expand description

Source trait for sources of Cargo packages.

Re-exportsยง

use cargo_util::collections::HashMap; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::rc::Rc; ๐Ÿ”’
use crate::sources::IndexSummary; ๐Ÿ”’
use crate::util::CargoResult; ๐Ÿ”’
use crate::workspace::SourceId; ๐Ÿ”’
use crate::workspace::Dependency; ๐Ÿ”’
use crate::workspace::Package; ๐Ÿ”’
use crate::workspace::PackageId; ๐Ÿ”’

Structsยง

SourceMap
A [HashMap] of SourceId to Box<Source>.

Enumsยง

MaybePackage
A download status that represents if a Package has already been downloaded, or if not then a location to download.
QueryKind
Defines how a dependency query will be performed for a Source.

Traitsยง

Source
An abstraction of different sources of Cargo packages.