Skip to content

Commit

Permalink
Merge pull request #3 from MahdiBM/mmbm-existential-any
Browse files Browse the repository at this point in the history
Full compatibility with the "ExistentialAny" upcoming feature
  • Loading branch information
adam-fowler authored Jul 13, 2023
2 parents e621e15 + e84e623 commit 861f3af
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 861f3af

Please sign in to comment.