Skip to content

Commit d918a5c

Browse files
committed
Enable Swift 6 support
1 parent ab23e8e commit d918a5c

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Package@swift-6.0.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:6.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "BSON",
7+
platforms: [
8+
.macOS(.v10_15),
9+
.iOS(.v13)
10+
],
11+
products: [
12+
.library(
13+
name: "BSON",
14+
targets: ["BSON"])
15+
],
16+
dependencies: [
17+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.46.0")
18+
],
19+
targets: [
20+
.target(
21+
name: "BSON",
22+
dependencies: [
23+
.product(name: "NIOCore", package: "swift-nio"),
24+
],
25+
swiftSettings: [
26+
.enableExperimentalFeature("StrictConcurrency=complete"),
27+
]
28+
),
29+
.testTarget(
30+
name: "BSONTests",
31+
dependencies: ["BSON"])
32+
]
33+
)

Tests/BSONTests/BSONPublicTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func assertInvalid(_ document: Document, file: StaticString = #filePath, line: U
3131
}
3232
}
3333

34-
var binaryData: ByteBuffer = {
34+
let binaryData: ByteBuffer = {
3535
let alloc = ByteBufferAllocator()
3636
var buffer = alloc.buffer(capacity: 5)
3737
buffer.writeBytes([34,34,34,34,34])

0 commit comments

Comments
 (0)