fix: allow new, subsequent rust-project.json-based workspaces to get

proc macro expansion.
This commit is contained in:
David Barsky 2023-03-28 09:17:16 -04:00
parent e7337fc9c3
commit 6a42d7f627
2 changed files with 42 additions and 9 deletions

View file

@ -672,6 +672,14 @@ impl ProjectWorkspace {
_ => false,
}
}
/// Returns `true` if the project workspace is [`Json`].
///
/// [`Json`]: ProjectWorkspace::Json
#[must_use]
pub fn is_json(&self) -> bool {
matches!(self, Self::Json { .. })
}
}
fn project_json_to_crate_graph(