Artifact Content
Not logged in

Artifact d5cbfa8a35d98d68b3e82bae622e916aee757c92:


use core::{Resolve, PackageSet, Workspace};
use ops;
use util::CargoResult;

/// Executes `cargo fetch`.
pub fn fetch<'a>(ws: &Workspace<'a>) -> CargoResult<(Resolve, PackageSet<'a>)> {
    let (packages, resolve) = ops::resolve_ws(ws)?;
    for id in resolve.iter() {
        packages.get(id)?;
    }
    Ok((resolve, packages))
}