-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
If you apply an annotation-triggered builder using source_gen to a codebase that mostly doesn't use it, every file gets analyzed to check for the annotation. Edit: correction; files with no annotations are skipped in some circumstances, see this comment.
It seems like a good idea to bail out earlier based on a faster check. For example: check if the package that contains the annotation is imported.
Metadata
Metadata
Assignees
Labels
type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug