Skip to content

Commit d3539f0

Browse files
committed
swift 5.2 -> 6.2.1, dependency upgrade, improved concurrency safety
1 parent 2f77e5c commit d3539f0

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Package.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
// swift-tools-version:5.2
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
1+
// swift-tools-version:6.2.1
2+
// The swift-tools-version declares the minimum version of Swift required to build this package
33

44
import PackageDescription
55

66
let package = Package(
77
name: "Smtp",
88
platforms: [
9-
.macOS(.v10_15)
9+
.macOS(.v10_15)
1010
],
1111
products: [
1212
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1313
.library(name: "Smtp", targets: ["Smtp"])
1414
],
1515
dependencies: [
16-
// 💧 A server-side Swift web framework.
17-
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.0.1")),
18-
19-
// Event-driven network application framework for high performance protocol servers & clients, non-blocking.
20-
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.16.0")),
21-
16+
// 💧 A server-side Swift web framework
17+
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.121.1")),
18+
19+
// Event-driven network application framework for high performance protocol servers & clients, non-blocking
20+
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.93.0")),
21+
2222
// Bindings to OpenSSL-compatible libraries for TLS support in SwiftNIO
23-
.package(url: "https://github.com/apple/swift-nio-ssl.git", .upToNextMajor(from: "2.7.1"))
23+
.package(url: "https://github.com/apple/swift-nio-ssl.git", .upToNextMajor(from: "2.36.0"))
2424
],
2525
targets: [
2626
.target(name: "Smtp", dependencies: [

Sources/Smtp/Models/HelloMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Licensed under the MIT License.
55
//
66

7-
public enum HelloMethod: String {
7+
public enum HelloMethod: String, Sendable {
88
case helo = "HELO"
99
case ehlo = "EHLO"
1010
}

Sources/Smtp/Models/SignInMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Licensed under the MIT License.
55
//
66

7-
public enum SignInMethod {
7+
public enum SignInMethod: Sendable {
88
case anonymous
99
case credentials(username: String, password: String)
1010
}

Sources/Smtp/SmtpSecure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Vapor
88
import NIO
99
import NIOSSL
1010

11-
public enum SmtpSecureChannel {
11+
public enum SmtpSecureChannel: Sendable {
1212

1313
/// Communication without any encryption (even password is send as a plain text).
1414
case none

Sources/Smtp/SmtpServerConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import NIO
88
import Vapor
99

10-
public struct SmtpServerConfiguration {
10+
public struct SmtpServerConfiguration: Sendable {
1111
public var hostname: String
1212
public var port: Int
1313
public var secure: SmtpSecureChannel

0 commit comments

Comments
 (0)