Bump swift-tools-version to 5.5 (#696)

In addition to Swift Concurrency, Swift 5.5 also introduces `get throws` properties, which would allow us to fix numerous warnings related to non-throwing `AbsolutePath.init` deprecation.
This commit is contained in:
Max Desiatov
2023-02-08 19:29:21 +00:00
committed by GitHub
parent effcb1c20a
commit 95709feced
2 changed files with 4 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.5
import PackageDescription
@@ -28,7 +28,7 @@ let package = Package(
// See 'Dependencies' below.
],
targets: [
.target(
.executableTarget(
name: "sourcekit-lsp",
dependencies: [
"LanguageServerProtocolJSONRPC",
@@ -65,7 +65,6 @@ let package = Package(
"LSPTestSupport",
"SourceKitLSP",
.product(name: "ISDBTestSupport", package: "IndexStoreDB"),
.product(name: "tibs", package: "IndexStoreDB"), // Never imported, needed at runtime
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
],
resources: [

View File

@@ -54,7 +54,8 @@ extension PathPrefixMapping: ExpressibleByArgument {
extension LogLevel: ExpressibleByArgument {}
extension BuildConfiguration: ExpressibleByArgument {}
struct Main: ParsableCommand {
@main
struct SourceKitLSP: ParsableCommand {
static let configuration = CommandConfiguration(
abstract: "Language Server Protocol implementation for Swift and C-based languages"
)
@@ -209,5 +210,3 @@ struct Main: ParsableCommand {
dispatchMain()
}
}
Main.main()