mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
See issue #536 All the examples are now depending on the runtime library located at `../..`. The `Package.swift` files contain a commented line with the `.package` to use when user wants to fetch the runtime from GitHub. --------- Co-authored-by: Sebastien Stormacq <stormacq@amazon.lu>
34 lines
1.3 KiB
Swift
34 lines
1.3 KiB
Swift
// swift-tools-version: 6.2
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "LambdaWithServiceLifecycle",
|
|
platforms: [
|
|
.macOS(.v15)
|
|
],
|
|
dependencies: [
|
|
// For local development (default)
|
|
.package(name: "swift-aws-lambda-runtime", path: "../.."),
|
|
|
|
// For standalone usage, comment the line above and uncomment below:
|
|
// .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "1.0.0"),
|
|
|
|
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.0.0"),
|
|
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.26.0"),
|
|
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.6.3"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "LambdaWithServiceLifecycle",
|
|
dependencies: [
|
|
.product(name: "PostgresNIO", package: "postgres-nio"),
|
|
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
|
|
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
|
|
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
|
|
]
|
|
)
|
|
]
|
|
)
|