Files
swift-openapi-lambda/Package.swift
T
Sébastien Stormacq c72834d93c Update to support AWS Lambda Runtime for Swift v2 (#22)
- Update this library to support the upcoming release of AWS Lambda
Runtime for Swift v2.
This change affects the public API (some `Sendable` added) and requires
a major version bump. I propose to release v2 to align this library's
major with the Swift AWS Lambda Runtime's major.

- Add a QuoteAPI example in the `Examples` directory
2025-09-06 11:34:56 +02:00

34 lines
1.2 KiB
Swift

// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-openapi-lambda",
platforms: [.macOS(.v15)],
products: [.library(name: "OpenAPILambda", targets: ["OpenAPILambda"])],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.8.2"),
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "2.0.0-beta.3"),
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.2.0"),
],
targets: [
.target(
name: "OpenAPILambda",
dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
],
path: "Sources"
),
// test targets
.testTarget(
name: "OpenAPILambdaTests",
dependencies: [
.byName(name: "OpenAPILambda")
]
),
]
)