swift-nio-extras:基于 SwiftNIO 的辅助功能扩展项目

可帮助开发者简化 SwiftNIO 相关开发任务,提供协议编解码器、连接管理、HTTP 处理等辅助功能,包含帧解码器、事件调试、流量记录等实用组件,代码质量高且与 SwiftNIO 生态紧密集成。【此简介由AI生成】

Branch7Tags54
FilesLast commitLast update
1 year ago
10 months ago
10 months ago
8 years ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
3 years ago
2 years ago
7 years ago
8 years ago
3 years ago
10 months ago
1 year ago
5 years ago

NIOExtras

NIOExtras is a good place for code that is related to NIO but not core. It can also be used to incubate APIs for tasks that are possible with core-NIO but are cumbersome today.

What makes a good contribution to NIOExtras?

  • a protocol encoder/decoder pair (also called "codec") that is often used but is small enough so it doesn't need its own repository
  • a helper to achieve a task that is harder-than-necessary to achieve with core-NIO

Code Quality / Stability

All code will go through code review like in the other repositories related to the SwiftNIO project.

swift-nio-extras part of the SwiftNIO 2 family of repositories and depends on the following:

  • swift-nio, version 2.30.0 or better.
  • Swift 5.7.1
  • zlib and its development headers installed on the system. But don't worry, you'll find zlib on pretty much any UNIX system that can compile any sort of code.

To depend on swift-nio-extras, put the following in the dependencies of your Package.swift:

.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.0.0"),

Support for older Swift versions

The most recent versions of SwiftNIO Extras support Swift 5.7.1 and newer. The minimum Swift version supported by SwiftNIO Extras releases are detailed below:

SwiftNIO Extras Minimum Swift Version
1.0.0 ..< 1.10.0 5.0
1.10.0 ..< 1.11.0 5.2
1.11.0 ..< 1.14.0 5.4
1.14.0 ..< 1.19.0 5.5.2
1.19.0 ..< 1.20.0 5.6
1.20.0 ..< 1.23.0 5.7.1
1.23.0 ..< 1.27.0 5.8
1.27.0 ..< 1.30.0 5.10
1.30.0 ... 6.0

On the nio-extras-0.1 branch, you can find the swift-nio-extras version for the SwiftNIO 1 family. It requires Swift 4.1 or better.

Current Contents

Introduction

可帮助开发者简化 SwiftNIO 相关开发任务,提供协议编解码器、连接管理、HTTP 处理等辅助功能,包含帧解码器、事件调试、流量记录等实用组件,代码质量高且与 SwiftNIO 生态紧密集成。【此简介由AI生成】

Customize your domain