Skip to content

Commit 2d43c71

Browse files
committed
Add Package manifest for Swift 5.5 users for DocC
1 parent 498b6a5 commit 2d43c71

File tree

2 files changed

+82
-4
lines changed

2 files changed

+82
-4
lines changed

Package.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// This source file is part of the RediStack open source project
55
//
6-
// Copyright (c) 2019-2021 RediStack project authors
6+
// Copyright (c) 2019-2022 RediStack project authors
77
// Licensed under Apache License v2.0
88
//
99
// See LICENSE.txt for license information
@@ -36,7 +36,8 @@ let package = Package(
3636
.product(name: "Logging", package: "swift-log"),
3737
.product(name: "Metrics", package: "swift-metrics"),
3838
.product(name: "ServiceDiscovery", package: "swift-service-discovery")
39-
]
39+
],
40+
exclude: ["Documentation.docc"]
4041
),
4142
.testTarget(
4243
name: "RediStackTests",
@@ -47,7 +48,7 @@ let package = Package(
4748
]
4849
),
4950

50-
.target(name: "RedisTypes", dependencies: ["RediStack"]),
51+
.target(name: "RedisTypes", dependencies: ["RediStack"], exclude: ["Documentation.docc"]),
5152
.testTarget(
5253
name: "RedisTypesTests",
5354
dependencies: [
@@ -61,7 +62,8 @@ let package = Package(
6162
dependencies: [
6263
.product(name: "NIO", package: "swift-nio"),
6364
"RediStack"
64-
]
65+
],
66+
exclude: ["Documentation.docc"]
6567
),
6668

6769
.testTarget(

[email protected]

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// swift-tools-version:5.5
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the RediStack open source project
5+
//
6+
// Copyright (c) 2022 RediStack project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of RediStack project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "RediStack",
20+
products: [
21+
.library(name: "RediStack", targets: ["RediStack"]),
22+
.library(name: "RediStackTestUtils", targets: ["RediStackTestUtils"]),
23+
.library(name: "RedisTypes", targets: ["RedisTypes"])
24+
],
25+
dependencies: [
26+
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
27+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
28+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.18.0"),
29+
.package(url: "https://github.com/apple/swift-service-discovery", from: "1.0.0"),
30+
],
31+
targets: [
32+
.target(
33+
name: "RediStack",
34+
dependencies: [
35+
.product(name: "NIO", package: "swift-nio"),
36+
.product(name: "Logging", package: "swift-log"),
37+
.product(name: "Metrics", package: "swift-metrics"),
38+
.product(name: "ServiceDiscovery", package: "swift-service-discovery")
39+
]
40+
),
41+
.testTarget(
42+
name: "RediStackTests",
43+
dependencies: [
44+
"RediStack", "RediStackTestUtils",
45+
.product(name: "NIO", package: "swift-nio"),
46+
.product(name: "NIOTestUtils", package: "swift-nio")
47+
]
48+
),
49+
50+
.target(name: "RedisTypes", dependencies: ["RediStack"]),
51+
.testTarget(
52+
name: "RedisTypesTests",
53+
dependencies: [
54+
"RediStack", "RedisTypes", "RediStackTestUtils",
55+
.product(name: "NIO", package: "swift-nio")
56+
]
57+
),
58+
59+
.target(
60+
name: "RediStackTestUtils",
61+
dependencies: [
62+
.product(name: "NIO", package: "swift-nio"),
63+
"RediStack"
64+
]
65+
),
66+
67+
.testTarget(
68+
name: "RediStackIntegrationTests",
69+
dependencies: [
70+
"RediStack", "RediStackTestUtils",
71+
.product(name: "NIO", package: "swift-nio"),
72+
.product(name: "ServiceDiscovery", package: "swift-service-discovery")
73+
]
74+
)
75+
]
76+
)

0 commit comments

Comments
 (0)