Skip to content

Remove @PlaydateMain macro and SwiftSyntax dependency#158

Merged
finnvoor merged 1 commit intomainfrom
push-zxsllrwlnsvo
Jan 31, 2026
Merged

Remove @PlaydateMain macro and SwiftSyntax dependency#158
finnvoor merged 1 commit intomainfrom
push-zxsllrwlnsvo

Conversation

@finnvoor
Copy link
Owner

@finnvoor finnvoor commented Jan 31, 2026

Summary

  • Remove the @PlaydateMain macro and PlaydateKitMacros target
  • Drop the SwiftSyntax package dependency entirely
  • Restore manual entry.swift event handler boilerplate in examples

Motivation

SwiftSyntax is a large dependency that significantly increases build times for all downstream consumers of PlaydateKit. It's also tightly coupled to specific Swift compiler versions, which causes build issues — particularly when using snapshot toolchains or Xcode with non-standard toolchain configurations.

The @PlaydateMain macro only eliminated a small amount of event handler boilerplate (~18 lines per game). Restoring this boilerplate is a worthwhile tradeoff to avoid the build time and compatibility cost of SwiftSyntax.

@finnvoor finnvoor enabled auto-merge (squash) January 31, 2026 15:06
@finnvoor finnvoor merged commit 944734c into main Jan 31, 2026
8 checks passed
@finnvoor finnvoor deleted the push-zxsllrwlnsvo branch January 31, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant