aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-03 09:33:01 +0100
committerAleksey Kladov <[email protected]>2020-06-03 09:33:01 +0100
commitca80544f4baef69f3bb80e6b069291fbc89a927c (patch)
tree35e158d2bc4cb58abade4beb749d0cd523435250 /crates/ra_project_model/src
parentac4782ef11706c39117286ddffc3e44fb7e61888 (diff)
Put important things on top
Diffstat (limited to 'crates/ra_project_model/src')
-rw-r--r--crates/ra_project_model/src/json_project.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_project_model/src/json_project.rs b/crates/ra_project_model/src/json_project.rs
index bd2bae15e..09c06fef9 100644
--- a/crates/ra_project_model/src/json_project.rs
+++ b/crates/ra_project_model/src/json_project.rs
@@ -5,6 +5,13 @@ use std::path::PathBuf;
5use rustc_hash::{FxHashMap, FxHashSet}; 5use rustc_hash::{FxHashMap, FxHashSet};
6use serde::Deserialize; 6use serde::Deserialize;
7 7
8/// Roots and crates that compose this Rust project.
9#[derive(Clone, Debug, Deserialize)]
10pub struct JsonProject {
11 pub(crate) roots: Vec<Root>,
12 pub(crate) crates: Vec<Crate>,
13}
14
8/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in 15/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
9/// all roots. Roots might be nested. 16/// all roots. Roots might be nested.
10#[derive(Clone, Debug, Deserialize)] 17#[derive(Clone, Debug, Deserialize)]
@@ -57,13 +64,6 @@ pub struct Dep {
57 pub(crate) name: String, 64 pub(crate) name: String,
58} 65}
59 66
60/// Roots and crates that compose this Rust project.
61#[derive(Clone, Debug, Deserialize)]
62pub struct JsonProject {
63 pub(crate) roots: Vec<Root>,
64 pub(crate) crates: Vec<Crate>,
65}
66
67#[cfg(test)] 67#[cfg(test)]
68mod tests { 68mod tests {
69 use super::*; 69 use super::*;