Skip to content

Commit

Permalink
Full compatibility with the "ExistentialAny" upcoming feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jul 12, 2023
1 parent e621e15 commit e84e623
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

import PackageDescription

let swiftSettings: [SwiftSetting] = [
// https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
// Require `any` for existential types.
.enableUpcomingFeature("ExistentialAny")
]

let package = Package(
name: "swift-openapi-hummingbird",
platforms: [
Expand All @@ -21,14 +27,16 @@ let package = Package(
dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
]
],
swiftSettings: swiftSettings
),
.testTarget(
name: "OpenAPIHummingbirdTests",
dependencies: [
"OpenAPIHummingbird",
.product(name: "HummingbirdXCT", package: "hummingbird"),
]
],
swiftSettings: swiftSettings
),
]
)

0 comments on commit e84e623

Please sign in to comment.