mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Rust project supports proc-macro dependent crates
This commit is contained in:
parent
df0936b4af
commit
cb13e4a2ca
3 changed files with 18 additions and 2 deletions
|
@ -37,6 +37,7 @@ pub struct Crate {
|
|||
pub(crate) is_workspace_member: bool,
|
||||
pub(crate) include: Vec<AbsPathBuf>,
|
||||
pub(crate) exclude: Vec<AbsPathBuf>,
|
||||
pub(crate) is_proc_macro: bool,
|
||||
}
|
||||
|
||||
impl ProjectJson {
|
||||
|
@ -96,6 +97,7 @@ impl ProjectJson {
|
|||
is_workspace_member,
|
||||
include,
|
||||
exclude,
|
||||
is_proc_macro: crate_data.is_proc_macro,
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>(),
|
||||
|
@ -135,6 +137,8 @@ struct CrateData {
|
|||
proc_macro_dylib_path: Option<PathBuf>,
|
||||
is_workspace_member: Option<bool>,
|
||||
source: Option<CrateSource>,
|
||||
#[serde(default)]
|
||||
is_proc_macro: bool,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue