Files
Chad Paulson 6c8c581517 Implement SwiftTorrent: pure Swift BitTorrent library
Full BEP-3 peer wire protocol, BEP-5 DHT, BEP-15 UDP trackers,
magnet link support, bencode serialization, rarest-first piece
selection, and async session management using SwiftNIO and
swift-crypto. Includes 64 passing unit tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 04:17:43 -06:00

35 lines
1.1 KiB
Swift

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SwiftTorrent",
platforms: [
.macOS(.v14),
.iOS(.v17)
],
products: [
.library(name: "SwiftTorrent", targets: ["SwiftTorrent"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
],
targets: [
.target(
name: "SwiftTorrent",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOExtras", package: "swift-nio-extras"),
.product(name: "Crypto", package: "swift-crypto"),
]
),
.testTarget(
name: "SwiftTorrentTests",
dependencies: ["SwiftTorrent"]
),
]
)