diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-16 22:00:38 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-16 22:00:38 -0700 |
commit | c808fa9ab35fde98d592acf74e74055f5f4a18c5 (patch) | |
tree | dfa19c9bd55e21dd3571b7be68288e071d2058bc /Package.swift | |
parent | 9e3cb79bbfe4eb55ef820b6afed2129412eaabe9 (diff) |
Refactor
Diffstat (limited to 'Package.swift')
-rw-r--r-- | Package.swift | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Package.swift b/Package.swift index 0e72b20..f0cb070 100644 --- a/Package.swift +++ b/Package.swift @@ -16,10 +16,16 @@ let package = Package( .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), + .package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.20.0") + ], targets: [ - // Targets are the basic building blocks of a package, defining a module or a test suite. - // Targets can depend on other targets in this package and products from dependencies. + .target( + name: "GopherHelpers", + dependencies: [ + .product(name: "NIOCore", package: "swift-nio") + ] + ), .executableTarget( name: "swift-gopher", dependencies: [ @@ -29,12 +35,15 @@ let package = Package( ), .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "Logging", package: "swift-log"), + "GopherHelpers", ] ), .target( name: "swiftGopherClient", dependencies: [ - .product(name: "NIO", package: "swift-nio") + .product(name: "NIO", package: "swift-nio"), + .product(name: "NIOTransportServices", package: "swift-nio-transport-services"), + "GopherHelpers" ] ), .testTarget( |