Files
element-x-ios/BuildExtensions/Package.swift
T
renovate[bot] 17ae3bcce7 Update dependency swiftlang/swift-syntax to v603 (#5803)
* Update dependency swiftlang/swift-syntax to v603

* Stop hiding Package.resolved file contents in GH reviews.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2026-06-30 08:50:37 +01:00

44 lines
1.7 KiB
Swift

// swift-tools-version: 6.2
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "BuildExtensions",
platforms: [.macOS(.v15)],
products: [
.library(name: "Macros", targets: ["Macros"])
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax", from: "603.0.2")
],
targets: [
// The public macro declarations imported by the app.
.target(name: "Macros",
dependencies: ["MacrosImplementation"],
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("InferIsolatedConformances")
]),
// The compiler plugin holding the SwiftSyntax expansions.
.macro(name: "MacrosImplementation",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
],
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("InferIsolatedConformances")
]),
.testTarget(name: "MacrosTests",
dependencies: [
"MacrosImplementation",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
],
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("InferIsolatedConformances")
])
]
)