-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package for Sendable, and other cleanup (#217)
* Package structure updates, remove obsolete files, update CI, bump minimum Swift to 5.8, fixup docs and logo * Sendable correctness, minor cleanup, use only debug logging in a library * Make the tests Sendable and async, use singleton MTELG and thread pool, don't use benchmarker's DB for tests
- Loading branch information
Showing
20 changed files
with
443 additions
and
398 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "fluent-postgres-driver", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.iOS(.v13), | ||
.watchOS(.v6), | ||
.tvOS(.v13), | ||
], | ||
products: [ | ||
.library(name: "FluentPostgresDriver", targets: ["FluentPostgresDriver"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/vapor/async-kit.git", from: "1.17.0"), | ||
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.43.0"), | ||
.package(url: "https://github.com/vapor/postgres-kit.git", from: "2.11.4"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "FluentPostgresDriver", | ||
dependencies: [ | ||
.product(name: "AsyncKit", package: "async-kit"), | ||
.product(name: "FluentKit", package: "fluent-kit"), | ||
.product(name: "FluentSQL", package: "fluent-kit"), | ||
.product(name: "PostgresKit", package: "postgres-kit"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
.testTarget( | ||
name: "FluentPostgresDriverTests", | ||
dependencies: [ | ||
.product(name: "FluentBenchmark", package: "fluent-kit"), | ||
.target(name: "FluentPostgresDriver"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
] | ||
) | ||
|
||
var swiftSettings: [SwiftSetting] { [ | ||
.enableUpcomingFeature("ExistentialAny"), | ||
.enableUpcomingFeature("ConciseMagicFile"), | ||
.enableUpcomingFeature("ForwardTrailingClosures"), | ||
.enableUpcomingFeature("DisableOutwardActorInference"), | ||
.enableExperimentalFeature("StrictConcurrency=complete"), | ||
] } |
Oops, something went wrong.