Skip to content

Commit

Permalink
Add Target.is_proc_macro() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Nov 15, 2023
1 parent 5b794f8 commit 64128dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Expand Up @@ -577,6 +577,11 @@ impl Target {
pub fn is_custom_build(&self) -> bool {
self.is_kind("custom-build")
}

/// Return true if this target is of kind "proc-macro".
pub fn is_proc_macro(&self) -> bool {
self.is_kind("proc-macro")
}
}

/// The Rust edition
Expand Down

0 comments on commit 64128dd

Please sign in to comment.