1234567891011121314151617181920212223242526272829303132 |
- // swift-tools-version:5.10
- // The swift-tools-version declares the minimum version of Swift required to build this package.
- import PackageDescription
- let package = Package(
- name: "server",
- platforms: [.macOS(.v14)],
- products: [
- .executable(name: "server", targets: ["server"])
- ],
- dependencies: [
- .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-beta.4"),
- .package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0-beta"),
- .package(url: "https://github.com/vapor/postgres-nio.git", from: "1.21.0"),
- ],
- targets: [
- .executableTarget(name: "server",
- dependencies: [
- .product(name: "Hummingbird", package: "hummingbird"),
- .product(name: "Mustache", package: "swift-mustache"),
- .product(name: "PostgresNIO", package: "postgres-nio"),
- ],
- swiftSettings: [
- // Enable better optimizations when building in Release configuration. Despite the use of
- // the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
- // builds. See <https://github.com/swift-server/guides#building-for-production> for details.
- .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
- ]
- ),
- ]
- )
|