mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
refactor(package): Make steps explicit
This commit is contained in:
parent
3f857e9dd4
commit
474598e3d7
@ -217,10 +217,12 @@ pub fn package(ws: &Workspace<'_>, opts: &PackageOpts<'_>) -> CargoResult<Vec<Fi
|
||||
// So we need filter
|
||||
pkgs.retain(|(pkg, _feats)| specs.iter().any(|spec| spec.matches(pkg.package_id())));
|
||||
|
||||
Ok(do_package(ws, opts, pkgs)?
|
||||
.into_iter()
|
||||
.map(|x| x.2)
|
||||
.collect())
|
||||
let packaged = do_package(ws, opts, pkgs)?;
|
||||
|
||||
let mut result = Vec::new();
|
||||
result.extend(packaged.into_iter().map(|(_, _, src)| src));
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
/// Packages an entire workspace.
|
||||
|
Loading…
x
Reference in New Issue
Block a user