Skip to content

Commit

Permalink
printing debris
Browse files Browse the repository at this point in the history
  • Loading branch information
elchukc committed Oct 30, 2024
1 parent d600d4e commit a702f55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cargo/core/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,15 @@ impl<'gctx> PackageSet<'gctx> {
force_all_targets,
);
for (pkg_id, deps) in filtered_deps {
// println!("pkg_id {:?}", pkg_id.name());
// deps.iter().map(|dep| dep.artifact().unwrap_or_default()).inspect(|x| println!("{:?}", x.platform()));
// println!("Pkg_id: {:?} - Artifact: {:?}", pkg_id.name(), deps.iter().map(|dep| ));
let artifact_kinds = deps.iter().filter_map(|dep| {
Some(
dep.artifact()?
.target()?
.to_resolved_compile_kind(*requested_kinds.iter().next().unwrap()),
)
).inspect(|x|println!("CompileKind: {x:?}"))
});
let req_kinds = [artifact_kinds.collect_vec().as_slice(), requested_kinds].concat();
collect_used_deps(
Expand Down

0 comments on commit a702f55

Please sign in to comment.