bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
309 stars 133 forks source link

Remove `swift_common` dependency from the `swift_interop_hint` rule #1237

Closed brentleyjones closed 2 months ago

brentleyjones commented 2 months ago

swift_common transitively loads the rest of the internal API implementations, almost none of which are needed by swift_interop_hint. Since this rule often appears in packages that contain no other Swift code, there's no need to incur loading the entire Swift rule set to use it, and worse, invalidating those packages when anything in the rule set unrelated to swift_interop_hint changes.

PiperOrigin-RevId: 449488969 (cherry picked from commit 5d31aea9c51ed4b4a2145908e2887edf868dc3c4)