35 lines
1.1 KiB
Swift
35 lines
1.1 KiB
Swift
// swift-tools-version: 5.8
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-openapi-hummingbird",
|
|
platforms: [
|
|
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
|
|
],
|
|
products: [
|
|
.library(name: "OpenAPIHummingbird", targets: ["OpenAPIHummingbird"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.1.3")),
|
|
.package(url: "https://github.com/hummingbird-project/hummingbird", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "OpenAPIHummingbird",
|
|
dependencies: [
|
|
.product(name: "Hummingbird", package: "hummingbird"),
|
|
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "OpenAPIHummingbirdTests",
|
|
dependencies: [
|
|
"OpenAPIHummingbird",
|
|
.product(name: "HummingbirdXCT", package: "hummingbird"),
|
|
]
|
|
),
|
|
]
|
|
)
|