Skip to content

Commit 2f3db6e

Browse files
authored
Remove reliance on the NIO umbrella module (#60)
1 parent 60021f9 commit 2f3db6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+64
-49
lines changed

Package.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ let package = Package(
3232
.target(
3333
name: "RediStack",
3434
dependencies: [
35-
.product(name: "Atomics", package: "swift-atomics"),
35+
.product(name: "NIOCore", package: "swift-nio"),
36+
.product(name: "NIOPosix", package: "swift-nio"),
3637
.product(name: "NIO", package: "swift-nio"),
38+
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
39+
.product(name: "Atomics", package: "swift-atomics"),
3740
.product(name: "Logging", package: "swift-log"),
3841
.product(name: "Metrics", package: "swift-metrics")
3942
]
@@ -42,7 +45,8 @@ let package = Package(
4245
.target(
4346
name: "RediStackTestUtils",
4447
dependencies: [
45-
.product(name: "NIO", package: "swift-nio"),
48+
.product(name: "NIOCore", package: "swift-nio"),
49+
.product(name: "NIOEmbedded", package: "swift-nio"),
4650
"RediStack"
4751
]
4852
),

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies: [
5656
**RediStack** is quick to use - all you need is an [`EventLoop`](https://apple.github.io/swift-nio/docs/current/NIO/Protocols/EventLoop.html) from **SwiftNIO**.
5757

5858
```swift
59-
import NIO
59+
import NIOCore
6060
import RediStack
6161

6262
let eventLoop: EventLoop = ...

Sources/RediStack/ChannelHandlers/RedisByteDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// Handles incoming byte messages from Redis
1818
/// and decodes them according to the Redis Serialization Protocol (RESP).

Sources/RediStack/ChannelHandlers/RedisCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// The `NIO.ChannelOutboundHandler.OutboundIn` type for `RedisCommandHandler`.
1818
///

Sources/RediStack/ChannelHandlers/RedisMessageEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
#if DEBUG
1818
// used only for debugging purposes where we build a formatted string for the encoded bytes

Sources/RediStack/ChannelHandlers/RedisPubSubHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
/// A closure receiver of individual Pub/Sub messages from Redis subscriptions to channels and patterns.
1818
/// - Warning: The receiver is called on the same `NIO.EventLoop` that processed the message.

Sources/RediStack/Commands/BasicCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
extension RedisClient {
1818
/// Echos the provided message through the Redis instance.

Sources/RediStack/Commands/HashCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
// MARK: Static Helpers
1818

Sources/RediStack/Commands/ListCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
// MARK: General
1818

Sources/RediStack/Commands/PubSubCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import NIO
15+
import NIOCore
1616

1717
// MARK: Publish
1818

0 commit comments

Comments
 (0)