Skip to content

Commit ed3b80c

Browse files
authored
Merge pull request #533 from fwcd/update-instructions-swift-tools-version-5.6
Update SPM instructions to swift-tools-version 5.6
2 parents b3e6ca5 + f866f0f commit ed3b80c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ Its API is designed for performance-critical applications. It uses value types a
1515
Add this repository to the `Package.swift` manifest of your project:
1616

1717
```swift
18-
// swift-tools-version:5.3
18+
// swift-tools-version:5.6
1919
import PackageDescription
2020

2121
let package = Package(
2222
name: "MyTool",
2323
dependencies: [
24-
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", .exact("<#Specify Release tag#>")),
24+
.package(url: "https://github.com/apple/swift-syntax.git", exact: "<#Specify Release tag#>"),
2525
],
2626
targets: [
27-
.target(name: "MyTool", dependencies: ["SwiftSyntax"]),
27+
.target(name: "MyTool", dependencies: [
28+
.product(name: "SwiftSyntax", package: "swift-syntax"),
29+
]),
2830
]
2931
)
3032
```

0 commit comments

Comments
 (0)