-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
53 lines (51 loc) · 1.97 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "hummingbird-lambda",
platforms: [
.macOS(.v14)
],
products: [
.library(name: "HummingbirdLambda", targets: ["HummingbirdLambda"]),
.library(name: "HummingbirdLambdaTesting", targets: ["HummingbirdLambdaTesting"]),
.executable(name: "HBLambdaTest", targets: ["HBLambdaTest"]),
],
dependencies: [
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2"),
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.4.0"),
.package(url: "https://github.com/swift-extras/swift-extras-base64.git", from: "1.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.32.0"),
],
targets: [
.target(
name: "HummingbirdLambda",
dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
.product(name: "ExtrasBase64", package: "swift-extras-base64"),
.product(name: "Hummingbird", package: "hummingbird"),
]
),
.target(
name: "HummingbirdLambdaTesting",
dependencies: [
.byName(name: "HummingbirdLambda")
]
),
.executableTarget(
name: "HBLambdaTest",
dependencies: [
.byName(name: "HummingbirdLambda")
]
),
.testTarget(
name: "HummingbirdLambdaTests",
dependencies: [
.byName(name: "HummingbirdLambda"),
.byName(name: "HummingbirdLambdaTesting"),
.product(name: "NIOPosix", package: "swift-nio"),
]
),
]
)