A new swift_macro target kind builds Swift compiler plugin dylibs. Any apple_library that depends on a swift_macro target automatically receives -load-plugin-library <dylib> on its Swift compile, so you can wire and use macros without manual compiler flags. The macro implementation is usually a regular dependency on a swift-syntax checkout.
Hive
Native swift_macro support with auto-loaded compiler plugins
Published
Jun 12, 2026 · 21:12 UTC
Repository
tuist/once