Files
swift-nio-imap/Examples/Proxy/Package.swift
T
Daniel Eggert e83d3dcb8a Require OS 26 platforms; enable Lifetimes
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.
2026-11-24 09:47:31 +09:00

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"),
]
)
]
)