fn resolve_dependencies(manifest: &Path,
                        config: &Config,
                        features: Vec<String>,
                        no_default_features: bool)
                        -> CargoResult<(Vec<Package>, Resolve)> {
    let mut source = try!(PathSource::for_path(manifest.parent().unwrap(), config));
    try!(source.update());

    let package = try!(source.root_package());

    let deps = try!(ops::resolve_dependencies(&package,
                                              config,
                                              Some(Box::new(source)),
                                              features,
                                              no_default_features));

    let (packages, resolve_with_overrides, _) = deps;

    Ok((packages, resolve_with_overrides))
}
/// Loads the manifest and resolves the dependencies of the project to the
/// concrete used versions. Afterwards available overrides of dependencies are applied.
Loads the manifest and resolves the dependencies of the project to the
concrete used versions. Afterwards available overrides of dependencies are applied.
Loads the manifest and resolves the dependencies of the project to the concrete used versions . Afterwards available overrides of dependencies are applied .
fn resolve_dependencies(manifest: &Path,
                        config: &Config,
                        features: Vec<String>,
                        no_default_features: bool)
                        -> CargoResult<(Vec<Package>, Resolve)> {
    let mut source = try!(PathSource::for_path(manifest.parent().unwrap(), config));
    try!(source.update());
    let package = try!(source.root_package());
    let deps = try!(ops::resolve_dependencies(&package,
                                              config,
                                              Some(Box::new(source)),
                                              features,
                                              no_default_features));
    let (packages, resolve_with_overrides, _) = deps;
    Ok((packages, resolve_with_overrides))
}
fn resolve_dependencies ( manifest : & Path , config : & Config , features : Vec < String > , no_default_features : bool ) -> CargoResult < ( Vec < Package > , Resolve ) > { let mut source = try ! ( PathSource for_path ( manifest parent ( ) unwrap ( ) config ) ) ; try ! ( source update ( ) ) ; let package = try ! ( source root_package ( ) ) ; let deps = try ! ( ops resolve_dependencies ( package config Some ( Box new ( source ) ) features no_default_features ) ) ; let ( packages , resolve_with_overrides , _ ) = deps ; Ok ( ( packages , resolve_with_overrides ) ) }
Loads the manifest and resolves the dependencies of the project to the
concrete used versions.
Loads the manifest and resolves the dependencies of the project to the concrete used versions .
manifest
&Path
config
&Config
features
Vec<String>
no_default_features
bool
manifest
&Path
config
&Config
features
Vec<String>
no_default_features
bool