Skip to content

Commit d2fda9f

Browse files
authored
Switch to Swift 5.10 (#12)
1 parent f937776 commit d2fda9f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 5.10
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
// Remember to update CI if changing
44

@@ -19,6 +19,7 @@
1919
import PackageDescription
2020

2121
let swiftSettings: [SwiftSetting] = [
22+
.enableExperimentalFeature("StrictConcurrency"),
2223
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)),
2324
]
2425

@@ -177,6 +178,7 @@ package.targets += [
177178
"HomomorphicEncryption",
178179
],
179180
path: "Benchmarks/PolyBenchmark",
181+
swiftSettings: swiftSettings,
180182
plugins: [
181183
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
182184
]),
@@ -187,6 +189,7 @@ package.targets += [
187189
"HomomorphicEncryption",
188190
],
189191
path: "Benchmarks/RlweBenchmark",
192+
swiftSettings: swiftSettings,
190193
plugins: [
191194
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
192195
]),
@@ -200,6 +203,7 @@ package.targets += [
200203
"PrivateInformationRetrievalProtobuf",
201204
],
202205
path: "Benchmarks/PrivateInformationRetrievalBenchmark",
206+
swiftSettings: swiftSettings,
203207
plugins: [
204208
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
205209
]),

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The PIR implementation in Swift Homomorphic Encryption uses HE to improve upon t
5757
Swift Homomorphic Encryption requires:
5858
* 64-bit processor with little-endian memory representation
5959
* macOS or Linux operating system
60-
* [Swift](https://www.swift.org/) version 6.0 or later
60+
* [Swift](https://www.swift.org/) version 5.10 or later
6161

6262
> [!NOTE]
6363
> Swift Homomorphic Encryption relies on [SystemRandomNumberGenerator](https://developer.apple.com/documentation/swift/systemrandomnumbergenerator) as a cryptographically secure random number generator, which may have platform-dependent behavior.
@@ -90,7 +90,7 @@ to your Swift code to access the functionality in the `HomomorphicEncryption` li
9090
## Developing Swift Homomorphic Encryption
9191
### Dependencies
9292
Building Swift Homomorphic Encryption requires:
93-
* [Swift](https://www.swift.org/) version 6.0 or later
93+
* [Swift](https://www.swift.org/) version 5.10 or later
9494

9595
Additionally, developing Swift Homomorphic Encryption requires:
9696
* [Nick Lockwood swiftformat](https://github.com/nicklockwood/SwiftFormat), v0.54.0

Sources/HomomorphicEncryption/HomomorphicEncryption.docc/UsingSwiftHomomorphicEncryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Get started using Swift Homomorphic Encryption.
66
Swift Homomorphic Encryption requires:
77
* 64-bit processor with little-endian memory representation
88
* macOS or Linux operating system
9-
* [Swift](https://www.swift.org/) version 6.0 or later
9+
* [Swift](https://www.swift.org/) version 5.10 or later
1010

1111
> Note: Swift Homomorphic Encryption relies on [SystemRandomNumberGenerator](https://developer.apple.com/documentation/swift/systemrandomnumbergenerator) as a cryptographically secure random number generator, which may have platform-dependent behavior.
1212

0 commit comments

Comments
 (0)