Skip to content

Commit 75e1270

Browse files
authored
Use from: for swift-crypto version (#5)
### Motivation SwiftNIO QUIC moved its required version forward. We do not need to pin the version here as well. ### Modifications Use `from:` for swift-crypto dependency. ### Result No dependency resolution conflict.
1 parent 3a03b4e commit 75e1270

4 files changed

Lines changed: 1 addition & 36 deletions

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let package = Package(
3131
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.3.0"),
3232
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
3333
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.0"),
34-
.package(url: "https://github.com/apple/swift-crypto.git", exact: "5.0.0-beta.1"),
34+
.package(url: "https://github.com/apple/swift-crypto.git", from: "5.0.0-beta.1"),
3535
.package(url: "https://github.com/apple/swift-certificates.git", branch: "swift-crypto-5.x"),
3636
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.22.0"),
3737
.package(url: "https://github.com/apple/swift-nio-quic-helpers.git", branch: "main"),

Tests/HTTP3Tests/TestUtil.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@
1414

1515
public import HTTP3
1616
import NIOCore
17-
public import NIOQUICHelpers
1817
import QPACK
1918

20-
extension QUICStreamID: @retroactive ExpressibleByIntegerLiteral {
21-
public init(integerLiteral value: UInt64) {
22-
self.init(rawValue: value)
23-
}
24-
}
25-
2619
extension String {
2720
var huffmanEncodedBytes: [UInt8] {
2821
var buffer = ByteBuffer()

Tests/NIOHTTP3Tests/TestUtil.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ public import HTTP3
1717
import NIOConcurrencyHelpers
1818
import NIOCore
1919
import NIOExtras
20-
public import NIOQUICHelpers
21-
22-
extension QUICStreamID: @retroactive ExpressibleByIntegerLiteral {
23-
public init(integerLiteral value: UInt64) {
24-
self.init(rawValue: value)
25-
}
26-
}
2720

2821
extension HTTP3GoawayID: ExpressibleByIntegerLiteral {
2922
public init(integerLiteral value: UInt64) {

Tests/QPACKTests/TestHelpers.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)