Files
element-x-ios/Components/BuildExtensions/Package.swift
renovate[bot] 0462cb4df0 Update dependency swiftlang/swift-syntax to v604 (#6186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-23 12:31:33 +01:00

47 lines
1.7 KiB
Swift

// swift-tools-version: 6.2
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "BuildExtensions",
platforms: [
.macOS(.v15),
.iOS(.v18) // Only necessary for Previews
],
products: [
.library(name: "Macros", targets: ["Macros"])
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax", from: "604.0.0")
],
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")
])
]
)