Skip to content

Commit

Permalink
Create Package@swift-6.0.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jul 23, 2024
1 parent 8bdb100 commit 2ab01da
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import CompilerPluginSupport
import PackageDescription

let package = Package(
name: "EnumeratorMacro",
platforms: [
.macOS(.v14),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
.visionOS(.v1),
],
products: [
.library(
name: "EnumeratorMacro",
targets: ["EnumeratorMacro"]
),
],
dependencies: [
.package(
url: "https://github.com/swiftlang/swift-syntax",
"510.0.0" ..< "610.0.0"
),
.package(
url: "https://github.com/hummingbird-project/swift-mustache",
from: "2.0.0-beta.3"
),
],
targets: [
.macro(
name: "EnumeratorMacroImpl",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "Mustache", package: "swift-mustache"),
],
swiftSettings: swiftSettings
),
.target(
name: "EnumeratorMacro",
dependencies: ["EnumeratorMacroImpl"],
swiftSettings: swiftSettings
),
.testTarget(
name: "EnumeratorMacroTests",
dependencies: [
"EnumeratorMacro",
"EnumeratorMacroImpl",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "Mustache", package: "swift-mustache"),
],
swiftSettings: swiftSettings
),
]
)

var swiftSettings: [SwiftSetting] {
[
.enableExperimentalFeature("ExistentialAny"),
.enableExperimentalFeature("AccessLevelOnImport"),
]
}

0 comments on commit 2ab01da

Please sign in to comment.