Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/load-cargo/src/lib.rs')
-rw-r--r--crates/load-cargo/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/load-cargo/src/lib.rs b/crates/load-cargo/src/lib.rs
index db4e10f7ba..abad7e9f7d 100644
--- a/crates/load-cargo/src/lib.rs
+++ b/crates/load-cargo/src/lib.rs
@@ -25,6 +25,7 @@ use vfs::{
AbsPath, AbsPathBuf, VfsPath,
};
+#[derive(Debug)]
pub struct LoadCargoConfig {
pub load_out_dirs_from_check: bool,
pub with_proc_macro_server: ProcMacroServerChoice,
@@ -68,6 +69,7 @@ pub fn load_workspace(
Box::new(loader)
};
+ tracing::debug!(?load_config, "LoadCargoConfig");
let proc_macro_server = match &load_config.with_proc_macro_server {
ProcMacroServerChoice::Sysroot => ws
.find_sysroot_proc_macro_srv()
@@ -80,6 +82,14 @@ pub fn load_workspace(
Err((anyhow::format_err!("proc macro server disabled"), false))
}
};
+ match &proc_macro_server {
+ Ok(server) => {
+ tracing::info!(path=%server.path(), "Proc-macro server started")
+ }
+ Err((e, _)) => {
+ tracing::info!(%e, "Failed to start proc-macro server")
+ }
+ }
let (crate_graph, proc_macros) = ws.to_crate_graph(
&mut |path: &AbsPath| {