Package.swift 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // swift-tools-version:5.10
  2. import PackageDescription
  3. let package = Package(
  4. name: "api",
  5. platforms: [
  6. .macOS(.v13)
  7. ],
  8. dependencies: [
  9. // 💧 A server-side Swift web framework.
  10. .package(url: "https://github.com/vapor/vapor.git", from: "4.92.4"),
  11. // 🗄 An ORM for SQL and NoSQL databases.
  12. .package(url: "https://github.com/vapor/fluent.git", from: "4.9.0"),
  13. // 🐘 Fluent driver for Postgres.
  14. .package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.8.0"),
  15. // 🍃 An expressive, performant, and extensible templating language built for Swift.
  16. .package(url: "https://github.com/vapor/leaf.git", from: "4.3.0"),
  17. ],
  18. targets: [
  19. .executableTarget(
  20. name: "App",
  21. dependencies: [
  22. .product(name: "Fluent", package: "fluent"),
  23. .product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
  24. .product(name: "Leaf", package: "leaf"),
  25. .product(name: "Vapor", package: "vapor"),
  26. ],
  27. swiftSettings: swiftSettings
  28. ),
  29. .testTarget(
  30. name: "AppTests",
  31. dependencies: [
  32. .target(name: "App"),
  33. .product(name: "XCTVapor", package: "vapor"),
  34. ],
  35. swiftSettings: swiftSettings
  36. )
  37. ]
  38. )
  39. var swiftSettings: [SwiftSetting] { [
  40. .enableUpcomingFeature("DisableOutwardActorInference"),
  41. .enableExperimentalFeature("StrictConcurrency"),
  42. ] }