aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/lib.rs1
-rw-r--r--crates/project_model/src/workspace.rs3
2 files changed, 4 insertions, 0 deletions
diff --git a/crates/project_model/src/lib.rs b/crates/project_model/src/lib.rs
index 8c6cf94c2..c2fde00d5 100644
--- a/crates/project_model/src/lib.rs
+++ b/crates/project_model/src/lib.rs
@@ -50,6 +50,7 @@ pub use proc_macro_api::ProcMacroClient;
50pub enum ProjectManifest { 50pub enum ProjectManifest {
51 ProjectJson(AbsPathBuf), 51 ProjectJson(AbsPathBuf),
52 CargoToml(AbsPathBuf), 52 CargoToml(AbsPathBuf),
53 DetachedFile(AbsPathBuf),
53} 54}
54 55
55impl ProjectManifest { 56impl ProjectManifest {
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs
index 607e62ea5..5fd648710 100644
--- a/crates/project_model/src/workspace.rs
+++ b/crates/project_model/src/workspace.rs
@@ -148,6 +148,9 @@ impl ProjectWorkspace {
148 let rustc_cfg = rustc_cfg::get(Some(&cargo_toml), config.target.as_deref()); 148 let rustc_cfg = rustc_cfg::get(Some(&cargo_toml), config.target.as_deref());
149 ProjectWorkspace::Cargo { cargo, sysroot, rustc, rustc_cfg } 149 ProjectWorkspace::Cargo { cargo, sysroot, rustc, rustc_cfg }
150 } 150 }
151 ProjectManifest::DetachedFile(_) => {
152 todo!("TODO kb")
153 }
151 }; 154 };
152 155
153 Ok(res) 156 Ok(res)