Use raw cfgs in json project and fix typo

This commit is contained in:
oxalica 2019-10-05 20:55:27 +08:00
parent b271cb18d5
commit c6303d9fee
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
3 changed files with 18 additions and 9 deletions

View file

@ -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)]