mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-25 04:47:51 +00:00
The new byte types need `Span`-producing stdlib accessors (`Array.span`, `String.utf8Span`) that are gated at 26. Also adds `DequeModule`. Public break: raises the deployment floor to 26 on every platform (was macOS 15, iOS 18, tvOS 18, watchOS 11, visionOS 2). Examples follow, since a path dependency cannot have a higher floor than its dependent.
29 lines
995 B
Swift
29 lines
995 B
Swift
// swift-tools-version:6.2
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
// 6.2 to match the root package, which this example depends on by path.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "imap-proxy-example",
|
|
platforms: [
|
|
// Matches the library, which pins macOS 26 for the stdlib accessors that produce a `Span`.
|
|
.macOS(.v26)
|
|
],
|
|
dependencies: [
|
|
.package(name: "swift-nio-imap", path: "../.."),
|
|
.package(url: "https://github.com/apple/swift-nio", from: "2.64.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-ssl", from: "2.24.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "Proxy",
|
|
dependencies: [
|
|
.product(name: "NIOIMAP", package: "swift-nio-imap"),
|
|
.product(name: "NIO", package: "swift-nio"),
|
|
.product(name: "NIOSSL", package: "swift-nio-ssl"),
|
|
]
|
|
)
|
|
]
|
|
)
|