mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use raw cfgs in json project and fix typo
This commit is contained in:
parent
b271cb18d5
commit
c6303d9fee
3 changed files with 18 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
use serde::Deserialize;
|
||||
|
||||
/// A root points to the directory which contains Rust crates. rust-analyzer watches all files in
|
||||
|
@ -19,8 +20,8 @@ pub struct Crate {
|
|||
pub(crate) root_module: PathBuf,
|
||||
pub(crate) edition: Edition,
|
||||
pub(crate) deps: Vec<Dep>,
|
||||
#[serde(default)]
|
||||
pub(crate) features: Vec<String>,
|
||||
pub(crate) atom_cfgs: FxHashSet<String>,
|
||||
pub(crate) key_value_cfgs: FxHashMap<String, String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue