-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
70 lines (67 loc) · 2.4 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// swift-tools-version:5.10
//===----------------------------------------------------------------------===//
//
// This source file is part of the StructuredWebSocketClient open source project
//
// Copyright (c) Stairtree GmbH
// Licensed under the MIT license
//
// See LICENSE.txt for license information
//
// SPDX-License-Identifier: MIT
//
//===----------------------------------------------------------------------===//
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableExperimentalFeature("StrictConcurrency=complete"),
]
let package = Package(
name: "StructuredWebSocketClient",
platforms: [
.macOS(.v12),
.iOS(.v15),
.watchOS(.v8),
.tvOS(.v15),
],
products: [
.library(name: "StructuredWebSocketClient", targets: ["StructuredWebSocketClient"]),
.library(name: "StructuredWebSocketClientTestSupport", targets: ["StructuredWebSocketClientTestSupport"]),
],
dependencies: [
// Swift logging API
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.2"),
// AsyncChannel with backpressure
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.0.0"),
.package(url: "https://github.com/stairtree/async-helpers.git", from: "0.2.0"),
],
targets: [
.target(
name: "StructuredWebSocketClient",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "AsyncHelpers", package: "async-helpers"),
],
swiftSettings: swiftSettings
),
.target(
name: "StructuredWebSocketClientTestSupport",
dependencies: [
.target(name: "StructuredWebSocketClient"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "StructuredWebSocketClientTests",
dependencies: [
.target(name: "StructuredWebSocketClient"),
.target(name: "StructuredWebSocketClientTestSupport"),
],
swiftSettings: swiftSettings
),
]
)