-
Notifications
You must be signed in to change notification settings - Fork 3
Package
Information about a Swift package as provided by its manifest.
public struct Package: EquatableUse JSONDecoder to decode a Package value
from the output of running swift package dump-package
in a directory containing a valid Package.swift manifest.
Important: This API is similar to but distinct from the Swift Package Manager's
PackageDescriptionmodule (https://developer.apple.com/documentation/swift\_packages/package). It's intended to be a lightweight, portable alternative to the official library for the sole purpose of reading generated Swift package manifests in JSON format.
Warning: The format of
swift package dump-packageisn't versioned, and any changes to this format between Swift releases may cause decoding to fail.
Decodable, Equatable
public init(from decoder: Decoder) throwsThe name of the package.
let name: StringThe products provided by the package.
let products: [Product]The dependencies used by the package.
let dependencies: [Dependency]The targets defined in the package.
let targets: [Target]The platforms supported by the package.
let platforms: [SupportedPlatform]The name used for C modules.
let cModuleName: String?The C programming language standard used by the package.
let cLanguageStandard: String?The C++ programming language standard used by the package.
let cxxLanguageStandard: String?Declares the minimum version of Swift required to build this package.
let toolsVersion: StringGenerated at 2020-10-22T15:50:25+0000 using swift-doc 1.0.0-beta.5.