Slide 67
Slide 67 text
//
swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Swift6Examples",
platforms: [.macOS(.v14)],
products: [
.library(
name: "Swift6Examples",
targets: ["Swift6Examples"]),
],
targets: [
.target(
name: "Swift6Examples",
dependencies: ["DependencyExample"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableExperimentalFeature("RegionBasedIsolation"),
.enableUpcomingFeature("IsolatedDefaultValues"),
.enableUpcomingFeature("GlobalConcurrency"),
.enableUpcomingFeature("InferSendableFromCaptures")
]
)
],
swiftLanguageVersions: [.version("6")]
)