Skip to content

Commit 5432493

Browse files
author
Paolo Tranquilli
committed
Rust: log detected manifests
1 parent 89a8cbc commit 5432493

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

Cargo.lock

Lines changed: 22 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ triomphe = "0.1.13"
2525
argfile = "0.2.1"
2626
codeql-extractor = { path = "../../shared/tree-sitter-extractor" }
2727
rust-extractor-macros = { path = "macros" }
28+
itertools = "0.13.0"

rust/extractor/src/main.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use crate::trap::TrapId;
22
use anyhow::Context;
3+
use itertools::Itertools;
4+
use log::info;
35
use ra_ap_hir::db::DefDatabase;
46
use ra_ap_hir::Crate;
57
use ra_ap_load_cargo::{load_workspace_at, LoadCargoConfig, ProcMacroServerChoice};
@@ -22,9 +24,12 @@ fn find_project_manifests(
2224
.iter()
2325
.map(|path| AbsPathBuf::assert_utf8(current.join(path)))
2426
.collect();
25-
Ok(ra_ap_project_model::ProjectManifest::discover_all(
26-
&abs_files,
27-
))
27+
let ret = ra_ap_project_model::ProjectManifest::discover_all(&abs_files);
28+
info!(
29+
"found manifests: {}",
30+
ret.iter().map(|m| format!("{m}")).join(", ")
31+
);
32+
Ok(ret)
2833
}
2934

3035
fn main() -> anyhow::Result<()> {

0 commit comments

Comments
 (0)