mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Put important things on top
This commit is contained in:
parent
ac4782ef11
commit
ca80544f4b
1 changed files with 7 additions and 7 deletions
|
@ -5,6 +5,13 @@ use std::path::PathBuf;
|
||||||
use rustc_hash::{FxHashMap, FxHashSet};
|
use rustc_hash::{FxHashMap, FxHashSet};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
|
/// Roots and crates that compose this Rust project.
|
||||||
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
pub struct JsonProject {
|
||||||
|
pub(crate) roots: Vec<Root>,
|
||||||
|
pub(crate) crates: Vec<Crate>,
|
||||||
|
}
|
||||||
|
|
||||||
/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
|
/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
|
||||||
/// all roots. Roots might be nested.
|
/// all roots. Roots might be nested.
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
@ -57,13 +64,6 @@ pub struct Dep {
|
||||||
pub(crate) name: String,
|
pub(crate) name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Roots and crates that compose this Rust project.
|
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
|
||||||
pub struct JsonProject {
|
|
||||||
pub(crate) roots: Vec<Root>,
|
|
||||||
pub(crate) crates: Vec<Crate>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Reference in a new issue