forked from vapor/vapor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
78 lines (64 loc) · 2.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "vapor",
products: [
.library(name: "Vapor", targets: ["Vapor"]),
],
dependencies: [
// Sugary extensions for the SwiftNIO library
.package(url: "https://github.com/vapor/async-kit.git", from: "1.0.0-alpha"),
// 💻 APIs for creating interactive CLI tools.
.package(url: "https://github.com/vapor/console-kit.git", from: "4.0.0-alpha"),
// 🔑 Hashing (BCrypt, SHA2, HMAC), encryption (AES), public-key (RSA), and random data generation.
.package(url: "https://github.com/vapor/crypto-kit.git", from: "4.0.0-alpha"),
// 🚍 High-performance trie-node router.
.package(url: "https://github.com/vapor/routing-kit.git", from: "4.0.0-alpha"),
// Event-driven network application framework for high performance protocol servers & clients, non-blocking.
.package(url: "https://github.com/apple/swift-nio.git", from: "2.2.0"),
// Bindings to OpenSSL-compatible libraries for TLS support in SwiftNIO
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
// HTTP/2 support for SwiftNIO
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.0.0"),
// Useful code around SwiftNIO.
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.0.0"),
// Swift logging API
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
// HTTP client library built on SwiftNIO
.package(url: "https://github.com/vapor/swift-nio-http-client.git", from: "0.0.0"),
// SwiftNIO based WebSocket client
.package(url: "https://github.com/vapor/nio-websocket-client.git", from: "1.0.0-alpha"),
],
targets: [
// C helpers
.target(name: "CMultipartParser"),
.target(name: "COperatingSystem"),
.target(name: "CURLParser"),
// Vapor
.target(name: "Vapor", dependencies: [
"AsyncKit",
"CMultipartParser",
"COperatingSystem",
"CURLParser",
"ConsoleKit",
"CryptoKit",
"Logging",
"NIO",
"NIOExtras",
"NIOFoundationCompat",
"NIOHTTPCompression",
"NIOHTTP1",
"NIOHTTP2",
"NIOHTTPClient",
"NIOSSL",
"NIOWebSocket",
"NIOWebSocketClient",
"RoutingKit",
]),
// Development
.target(name: "Development", dependencies: ["Vapor"]),
// Testing
.target(name: "XCTVapor", dependencies: ["Vapor"]),
.testTarget(name: "VaporTests", dependencies: ["XCTVapor"]),
]
)