Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (54 loc) · 1.84 KB
/
Copy pathPackage.swift
File metadata and controls
56 lines (54 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version:6.3
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.swiftLanguageMode(.v6),
.strictMemorySafety(),
.treatAllWarnings(as: .error),
.enableUpcomingFeature("InternalImportsByDefault"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("InferIsolatedConformances"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("ImmutableWeakCaptures"),
.enableExperimentalFeature("SuppressedAssociatedTypes"),
.enableExperimentalFeature("LifetimeDependence"),
.enableExperimentalFeature("Lifetimes"),
.enableUpcomingFeature("LifetimeDependence"),
.enableUpcomingFeature("StrictConcurrency"),
]
let package = Package(
name: "feather-openapi",
platforms: [
.macOS(.v15),
.iOS(.v18),
.tvOS(.v18),
.watchOS(.v11),
.visionOS(.v2),
],
products: [
.library(name: "FeatherOpenAPI", targets: ["FeatherOpenAPI"]),
],
dependencies: [
.package(url: "https://github.com/mattpolzin/OpenAPIKit", from: "7.0.0"),
.package(url: "https://github.com/jpsim/Yams", from: "6.2.0"),
],
targets: [
.target(
name: "FeatherOpenAPI",
dependencies: [
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "FeatherOpenAPITests",
dependencies: [
.product(name: "Yams", package: "Yams"),
.product(name: "OpenAPIKit", package: "OpenAPIKit"),
.product(name: "OpenAPIKitCompat", package: "OpenAPIKit"),
.target(name: "FeatherOpenAPI"),
],
swiftSettings: swiftSettings,
),
]
)