mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
2745fe1b5e
Drop support fro Swift 6.0 as per ecosystem's policy to support the last three major versions, now 6.1, 6.2, and 6.3 - CI is updated - all docs, readme, and examples are updated to 6.3 as default
38 lines
1.2 KiB
Swift
38 lines
1.2 KiB
Swift
// swift-tools-version:6.3
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-aws-lambda-runtime-example",
|
|
platforms: [.macOS(.v15)],
|
|
products: [
|
|
.executable(name: "APIGatewayLambda", targets: ["APIGatewayLambda"])
|
|
],
|
|
dependencies: [
|
|
// For local development, uncomment the line below and comment the remote dependency:
|
|
// .package(name: "swift-aws-lambda-runtime", path: "../.."),
|
|
|
|
.package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.9.0"),
|
|
|
|
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "APIGatewayLambda",
|
|
dependencies: [
|
|
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
|
|
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
|
|
],
|
|
path: "Sources"
|
|
),
|
|
.testTarget(
|
|
name: "LambdaFunctionTests",
|
|
dependencies: ["APIGatewayLambda"],
|
|
path: "Tests",
|
|
resources: [
|
|
.process("event.json")
|
|
]
|
|
),
|
|
]
|
|
)
|