Skip to content

Commit

Permalink
Add NIOTransportServices to NIODNS
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Mar 27, 2023
1 parent 770249d commit 8a7b1be
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
31 changes: 29 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
{
"object": {
"pins": [
{
"package": "swift-atomics",
"repositoryURL": "https://github.com/apple/swift-atomics.git",
"state": {
"branch": null,
"revision": "ff3d2212b6b093db7f177d0855adbc4ef9c5f036",
"version": "1.0.3"
}
},
{
"package": "swift-collections",
"repositoryURL": "https://github.com/apple/swift-collections.git",
"state": {
"branch": null,
"revision": "937e904258d22af6e447a0b72c0bc67583ef64a2",
"version": "1.0.4"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "124119f0bb12384cef35aa041d7c3a686108722d",
"version": "2.40.0"
"revision": "9b2848d76f5caad08b97e71a04345aa5bdb23a06",
"version": "2.49.0"
}
},
{
"package": "swift-nio-transport-services",
"repositoryURL": "https://github.com/apple/swift-nio-transport-services.git",
"state": {
"branch": null,
"revision": "c0d9a144cfaec8d3d596aadde3039286a266c15c",
"version": "1.15.0"
}
}
]
Expand Down
15 changes: 12 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,30 @@ let package = Package(
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DNSClient",
targets: ["DNSClient"]),
targets: [
"DNSClient"
]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.15.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.testTarget(
name: "DNSClientTests",
dependencies: ["DNSClient", "NIO"]),
dependencies: [
.target(name: "DNSClient"),
.product(name: "NIO", package: "swift-nio"),
]),
.target(
name: "DNSClient",
dependencies: ["NIO"]
dependencies: [
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
.product(name: "NIO", package: "swift-nio"),
]
)
]
)

0 comments on commit 8a7b1be

Please sign in to comment.