Skip to content

Commit

Permalink
Enable Swift 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Aug 14, 2024
1 parent ab23e8e commit d918a5c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:6.0

import PackageDescription

let package = Package(
name: "BSON",
platforms: [
.macOS(.v10_15),
.iOS(.v13)
],
products: [
.library(
name: "BSON",
targets: ["BSON"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.46.0")
],
targets: [
.target(
name: "BSON",
dependencies: [
.product(name: "NIOCore", package: "swift-nio"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete"),
]
),
.testTarget(
name: "BSONTests",
dependencies: ["BSON"])
]
)
2 changes: 1 addition & 1 deletion Tests/BSONTests/BSONPublicTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func assertInvalid(_ document: Document, file: StaticString = #filePath, line: U
}
}

var binaryData: ByteBuffer = {
let binaryData: ByteBuffer = {
let alloc = ByteBufferAllocator()
var buffer = alloc.buffer(capacity: 5)
buffer.writeBytes([34,34,34,34,34])
Expand Down

0 comments on commit d918a5c

Please sign in to comment.