forked from Mikroservices/Smtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
38 lines (34 loc) · 1.5 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
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Smtp",
platforms: [
.macOS(.v10_15)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(name: "Smtp", targets: ["Smtp"])
],
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.0.1")),
// Event-driven network application framework for high performance protocol servers & clients, non-blocking.
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.16.0")),
// Bindings to OpenSSL-compatible libraries for TLS support in SwiftNIO
.package(url: "https://github.com/apple/swift-nio-ssl.git", .upToNextMajor(from: "2.7.1"))
],
targets: [
.target(name: "Smtp", dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Vapor", package: "vapor")
]),
.testTarget(name: "SmtpTests", dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Vapor", package: "vapor"),
.target(name: "Smtp")
])
]
)