aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-05-23 18:32:22 +0100
committerKirill Bulatov <[email protected]>2021-05-23 20:46:20 +0100
commit695569d9784b4a7d6e91451a0cc354f8bd009b59 (patch)
tree3ab3f676d8fe1d04cf874f02ac256538b48df804 /crates/project_model/src
parentb3383b06614e5f302a3afa2fc2c177303b5b6ca8 (diff)
Draft detached files retrieval
Diffstat (limited to 'crates/project_model/src')
-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)