mirror of
https://github.com/apple/swift-log
synced 2026-11-29 04:14:22 +00:00
Motivation: Calling through protocols is more expensive than many other types of call. Modifications: Annotate each protocol usage with any or some keywords. Result: Protocol usage now obvious
43 lines
1.2 KiB
Swift
43 lines
1.2 KiB
Swift
// swift-tools-version:5.8
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Logging API open source project
|
|
//
|
|
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let swiftSettings: [SwiftSetting] = [
|
|
.enableUpcomingFeature("ExistentialAny"),
|
|
]
|
|
|
|
let package = Package(
|
|
name: "swift-log",
|
|
products: [
|
|
.library(name: "Logging", targets: ["Logging"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Logging",
|
|
dependencies: [],
|
|
swiftSettings: swiftSettings
|
|
),
|
|
.testTarget(
|
|
name: "LoggingTests",
|
|
dependencies: ["Logging"],
|
|
swiftSettings: swiftSettings
|
|
),
|
|
]
|
|
)
|