Expand proc-macros in workspace root, not package root

This commit is contained in:
Lukas Wirth 2024-08-27 12:30:04 +02:00
parent 2025b43653
commit 9a47e6f2c8
7 changed files with 34 additions and 14 deletions

View file

@ -243,6 +243,10 @@ impl TargetKind {
pub fn is_executable(self) -> bool {
matches!(self, TargetKind::Bin | TargetKind::Example)
}
pub fn is_proc_macro(self) -> bool {
matches!(self, TargetKind::Lib { is_proc_macro: true })
}
}
// Deserialize helper for the cargo metadata